15c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)/*
25c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
35c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) *           (C) 1999 Antti Koivisto (koivisto@kde.org)
45c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * Copyright (C) 2004, 2006, 2008, 2009 Apple Inc. All rights reserved.
55c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) *
65c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * This library is free software; you can redistribute it and/or
75c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * modify it under the terms of the GNU Library General Public
85c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * License as published by the Free Software Foundation; either
95c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * version 2 of the License, or (at your option) any later version.
105c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) *
115c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * This library is distributed in the hope that it will be useful,
125c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * but WITHOUT ANY WARRANTY; without even the implied warranty of
135c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
145c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * Library General Public License for more details.
155c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) *
165c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * You should have received a copy of the GNU Library General Public License
175c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * along with this library; see the file COPYING.LIB.  If not, write to
185c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
195c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * Boston, MA 02110-1301, USA.
205c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) *
215c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) */
225c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)
235c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)#ifndef HTMLAppletElement_h
245c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)#define HTMLAppletElement_h
255c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)
26f79f16f17ddc4f842d7b7a38603e280e94be826aTorne (Richard Coles)#include "core/html/HTMLPlugInElement.h"
275c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)
285c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)namespace WebCore {
295c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)
30a854de003a23bf3c7f95ec0f8154ada64092ff5cTorne (Richard Coles)class KURL;
31a854de003a23bf3c7f95ec0f8154ada64092ff5cTorne (Richard Coles)
32f79f16f17ddc4f842d7b7a38603e280e94be826aTorne (Richard Coles)class HTMLAppletElement FINAL : public HTMLPlugInElement {
335c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)public:
3451b2906e11752df6c18351cf520e30522d3b53a1Torne (Richard Coles)    static PassRefPtr<HTMLAppletElement> create(Document&, bool createdByParser);
355c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)
36c0e19a689c8ac22cdc96b291a8d33a5d3b0b34a4Torne (Richard Coles)protected:
37c0e19a689c8ac22cdc96b291a8d33a5d3b0b34a4Torne (Richard Coles)    virtual RenderWidget* renderWidgetForJSBindings() const OVERRIDE;
38c0e19a689c8ac22cdc96b291a8d33a5d3b0b34a4Torne (Richard Coles)
395c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)private:
4051b2906e11752df6c18351cf520e30522d3b53a1Torne (Richard Coles)    HTMLAppletElement(Document&, bool createdByParser);
415c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)
42926b001d589ce2f10facb93dd4b87578ea35a855Torne (Richard Coles)    virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
4351b2906e11752df6c18351cf520e30522d3b53a1Torne (Richard Coles)    virtual bool isURLAttribute(const Attribute&) const OVERRIDE;
4402772c6a72f1ee0b226341a4f4439970c29fc861Ben Murdoch
458abfc5808a4e34d6e03867af8bc440dee641886fTorne (Richard Coles)    virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE;
46591b958dee2cf159d33a0b931e6231072eaf38d5Ben Murdoch    virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE;
475c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)
48c0e19a689c8ac22cdc96b291a8d33a5d3b0b34a4Torne (Richard Coles)    virtual RenderWidget* existingRenderWidget() const OVERRIDE;
49a854de003a23bf3c7f95ec0f8154ada64092ff5cTorne (Richard Coles)    virtual void updateWidgetInternal() OVERRIDE;
505c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)
515c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)    bool canEmbedJava() const;
52a854de003a23bf3c7f95ec0f8154ada64092ff5cTorne (Richard Coles)    bool canEmbedURL(const KURL&) const;
53df95704c49daea886ddad70775bda23618d6274dBen Murdoch
54df95704c49daea886ddad70775bda23618d6274dBen Murdoch    virtual bool shouldRegisterAsNamedItem() const OVERRIDE { return true; }
55df95704c49daea886ddad70775bda23618d6274dBen Murdoch    virtual bool shouldRegisterAsExtraNamedItem() const OVERRIDE { return true; }
565c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)};
575c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)
585c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)}
595c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)
605c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)#endif
61