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, 2012 Apple Inc. All rights reserv
ed. | 4 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2012 Apple Inc. All rights reserv
ed. |
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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 // doesn't yet exist. | 132 // doesn't yet exist. |
133 virtual RenderPart* existingRenderPart() const = 0; | 133 virtual RenderPart* existingRenderPart() const = 0; |
134 virtual void updateWidgetInternal() = 0; | 134 virtual void updateWidgetInternal() = 0; |
135 | 135 |
136 bool loadPlugin(const KURL&, const String& mimeType, const Vector<String>& p
aramNames, const Vector<String>& paramValues, bool useFallback, bool requireRend
erer); | 136 bool loadPlugin(const KURL&, const String& mimeType, const Vector<String>& p
aramNames, const Vector<String>& paramValues, bool useFallback, bool requireRend
erer); |
137 bool pluginIsLoadable(const KURL&, const String& mimeType); | 137 bool pluginIsLoadable(const KURL&, const String& mimeType); |
138 bool wouldLoadAsNetscapePlugin(const String& url, const String& serviceType)
; | 138 bool wouldLoadAsNetscapePlugin(const String& url, const String& serviceType)
; |
139 | 139 |
140 void setPersistedPluginWidget(Widget*); | 140 void setPersistedPluginWidget(Widget*); |
141 | 141 |
142 mutable RefPtr<SharedPersistent<v8::Object> > m_pluginWrapper; | 142 mutable RefPtr<SharedPersistent<v8::Object>> m_pluginWrapper; |
143 NPObject* m_NPObject; | 143 NPObject* m_NPObject; |
144 bool m_isCapturingMouseEvents; | 144 bool m_isCapturingMouseEvents; |
145 bool m_needsWidgetUpdate; | 145 bool m_needsWidgetUpdate; |
146 bool m_shouldPreferPlugInsForImages; | 146 bool m_shouldPreferPlugInsForImages; |
147 | 147 |
148 OwnPtrWillBeMember<PluginPlaceholder> m_placeholder; | 148 OwnPtrWillBeMember<PluginPlaceholder> m_placeholder; |
149 | 149 |
150 // Normally the Widget is stored in HTMLFrameOwnerElement::m_widget. | 150 // Normally the Widget is stored in HTMLFrameOwnerElement::m_widget. |
151 // However, plugins can persist even when not rendered. In order to | 151 // However, plugins can persist even when not rendered. In order to |
152 // prevent confusing code which may assume that widget() != null | 152 // prevent confusing code which may assume that widget() != null |
153 // means the frame is active, we save off m_widget here while | 153 // means the frame is active, we save off m_widget here while |
154 // the plugin is persisting but not being displayed. | 154 // the plugin is persisting but not being displayed. |
155 RefPtrWillBeMember<Widget> m_persistedPluginWidget; | 155 RefPtrWillBeMember<Widget> m_persistedPluginWidget; |
156 }; | 156 }; |
157 | 157 |
158 inline bool isHTMLPlugInElement(const HTMLElement& element) | 158 inline bool isHTMLPlugInElement(const HTMLElement& element) |
159 { | 159 { |
160 return element.isPluginElement(); | 160 return element.isPluginElement(); |
161 } | 161 } |
162 | 162 |
163 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLPlugInElement); | 163 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLPlugInElement); |
164 | 164 |
165 } // namespace blink | 165 } // namespace blink |
166 | 166 |
167 #endif // HTMLPlugInElement_h | 167 #endif // HTMLPlugInElement_h |
OLD | NEW |