OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * Copyright (C) 2004, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 4 * Copyright (C) 2004, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 13 matching lines...) Expand all Loading... |
24 #define HTMLObjectElement_h | 24 #define HTMLObjectElement_h |
25 | 25 |
26 #include "core/html/FormAssociatedElement.h" | 26 #include "core/html/FormAssociatedElement.h" |
27 #include "core/html/HTMLPlugInElement.h" | 27 #include "core/html/HTMLPlugInElement.h" |
28 | 28 |
29 namespace WebCore { | 29 namespace WebCore { |
30 | 30 |
31 class HTMLFormElement; | 31 class HTMLFormElement; |
32 | 32 |
33 class HTMLObjectElement FINAL : public HTMLPlugInElement, public FormAssociatedE
lement { | 33 class HTMLObjectElement FINAL : public HTMLPlugInElement, public FormAssociatedE
lement { |
| 34 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLObjectElement); |
| 35 |
34 public: | 36 public: |
35 static PassRefPtrWillBeRawPtr<HTMLObjectElement> create(Document&, HTMLFormE
lement*, bool createdByParser); | 37 static PassRefPtrWillBeRawPtr<HTMLObjectElement> create(Document&, HTMLFormE
lement*, bool createdByParser); |
36 virtual ~HTMLObjectElement(); | 38 virtual ~HTMLObjectElement(); |
| 39 virtual void trace(Visitor*) OVERRIDE; |
37 | 40 |
38 const String& classId() const { return m_classId; } | 41 const String& classId() const { return m_classId; } |
39 | 42 |
40 virtual HTMLFormElement* formOwner() const OVERRIDE; | 43 virtual HTMLFormElement* formOwner() const OVERRIDE; |
41 | 44 |
42 bool containsJavaApplet() const; | 45 bool containsJavaApplet() const; |
43 | 46 |
44 virtual bool useFallbackContent() const OVERRIDE; | 47 virtual bool useFallbackContent() const OVERRIDE; |
45 virtual void renderFallbackContent() OVERRIDE; | 48 virtual void renderFallbackContent() OVERRIDE; |
46 | 49 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 | 99 |
97 // FIXME: This function should not deal with url or serviceType | 100 // FIXME: This function should not deal with url or serviceType |
98 // so that we can better share code between <object> and <embed>. | 101 // so that we can better share code between <object> and <embed>. |
99 void parametersForPlugin(Vector<String>& paramNames, Vector<String>& paramVa
lues, String& url, String& serviceType); | 102 void parametersForPlugin(Vector<String>& paramNames, Vector<String>& paramVa
lues, String& url, String& serviceType); |
100 | 103 |
101 bool shouldAllowQuickTimeClassIdQuirk(); | 104 bool shouldAllowQuickTimeClassIdQuirk(); |
102 bool hasValidClassId(); | 105 bool hasValidClassId(); |
103 | 106 |
104 void reloadPluginOnAttributeChange(const QualifiedName&); | 107 void reloadPluginOnAttributeChange(const QualifiedName&); |
105 | 108 |
| 109 #if !ENABLE(OILPAN) |
106 virtual void refFormAssociatedElement() OVERRIDE { ref(); } | 110 virtual void refFormAssociatedElement() OVERRIDE { ref(); } |
107 virtual void derefFormAssociatedElement() OVERRIDE { deref(); } | 111 virtual void derefFormAssociatedElement() OVERRIDE { deref(); } |
| 112 #endif |
108 | 113 |
109 virtual bool shouldRegisterAsNamedItem() const OVERRIDE { return true; } | 114 virtual bool shouldRegisterAsNamedItem() const OVERRIDE { return true; } |
110 virtual bool shouldRegisterAsExtraNamedItem() const OVERRIDE { return true;
} | 115 virtual bool shouldRegisterAsExtraNamedItem() const OVERRIDE { return true;
} |
111 | 116 |
112 String m_classId; | 117 String m_classId; |
113 bool m_useFallbackContent : 1; | 118 bool m_useFallbackContent : 1; |
114 }; | 119 }; |
115 | 120 |
116 // Intentionally left unimplemented, template specialization needs to be provide
d for specific | 121 // Intentionally left unimplemented, template specialization needs to be provide
d for specific |
117 // return types. | 122 // return types. |
(...skipping 17 matching lines...) Expand all Loading... |
135 const HTMLObjectElement& objectElement = static_cast<const HTMLObjectElement
&>(element); | 140 const HTMLObjectElement& objectElement = static_cast<const HTMLObjectElement
&>(element); |
136 // We need to assert after the cast because FormAssociatedElement doesn't | 141 // We need to assert after the cast because FormAssociatedElement doesn't |
137 // have hasTagName. | 142 // have hasTagName. |
138 ASSERT_WITH_SECURITY_IMPLICATION(objectElement.hasTagName(HTMLNames::objectT
ag)); | 143 ASSERT_WITH_SECURITY_IMPLICATION(objectElement.hasTagName(HTMLNames::objectT
ag)); |
139 return objectElement; | 144 return objectElement; |
140 } | 145 } |
141 | 146 |
142 } | 147 } |
143 | 148 |
144 #endif | 149 #endif |
OLD | NEW |