| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 // Public for FrameView::addWidgetToUpdate() | 54 // Public for FrameView::addWidgetToUpdate() |
| 55 bool needsWidgetUpdate() const { return m_needsWidgetUpdate; } | 55 bool needsWidgetUpdate() const { return m_needsWidgetUpdate; } |
| 56 void setNeedsWidgetUpdate(bool needsWidgetUpdate) { m_needsWidgetUpdate = ne
edsWidgetUpdate; } | 56 void setNeedsWidgetUpdate(bool needsWidgetUpdate) { m_needsWidgetUpdate = ne
edsWidgetUpdate; } |
| 57 void updateWidget(); | 57 void updateWidget(); |
| 58 | 58 |
| 59 protected: | 59 protected: |
| 60 HTMLPlugInElement(const QualifiedName& tagName, Document&, bool createdByPar
ser, PreferPlugInsForImagesOption); | 60 HTMLPlugInElement(const QualifiedName& tagName, Document&, bool createdByPar
ser, PreferPlugInsForImagesOption); |
| 61 | 61 |
| 62 // Node functions: | 62 // Node functions: |
| 63 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE; | 63 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE; |
| 64 virtual bool dispatchBeforeLoadEvent(const String& sourceURL) OVERRIDE FINAL
; | |
| 65 | 64 |
| 66 // Element functions: | 65 // Element functions: |
| 67 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; | 66 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; |
| 68 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) OVERRIDE; | 67 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) OVERRIDE; |
| 69 | 68 |
| 70 virtual bool useFallbackContent() const; | 69 virtual bool useFallbackContent() const; |
| 71 // Create or update the RenderWidget and return it, triggering layout if | 70 // Create or update the RenderWidget and return it, triggering layout if |
| 72 // necessary. | 71 // necessary. |
| 73 virtual RenderWidget* renderWidgetForJSBindings() const; | 72 virtual RenderWidget* renderWidgetForJSBindings() const; |
| 74 | 73 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 DisplayState displayState() const { return m_displayState; } | 124 DisplayState displayState() const { return m_displayState; } |
| 126 void setDisplayState(DisplayState state) { m_displayState = state; } | 125 void setDisplayState(DisplayState state) { m_displayState = state; } |
| 127 const String loadedMimeType() const; | 126 const String loadedMimeType() const; |
| 128 bool loadPlugin(const KURL&, const String& mimeType, const Vector<String>& p
aramNames, const Vector<String>& paramValues, bool useFallback); | 127 bool loadPlugin(const KURL&, const String& mimeType, const Vector<String>& p
aramNames, const Vector<String>& paramValues, bool useFallback); |
| 129 bool pluginIsLoadable(const KURL&, const String& mimeType); | 128 bool pluginIsLoadable(const KURL&, const String& mimeType); |
| 130 bool wouldLoadAsNetscapePlugin(const String& url, const String& serviceType)
; | 129 bool wouldLoadAsNetscapePlugin(const String& url, const String& serviceType)
; |
| 131 | 130 |
| 132 mutable RefPtr<SharedPersistent<v8::Object> > m_pluginWrapper; | 131 mutable RefPtr<SharedPersistent<v8::Object> > m_pluginWrapper; |
| 133 NPObject* m_NPObject; | 132 NPObject* m_NPObject; |
| 134 bool m_isCapturingMouseEvents; | 133 bool m_isCapturingMouseEvents; |
| 135 bool m_inBeforeLoadEventHandler; | |
| 136 bool m_needsWidgetUpdate; | 134 bool m_needsWidgetUpdate; |
| 137 bool m_shouldPreferPlugInsForImages; | 135 bool m_shouldPreferPlugInsForImages; |
| 138 DisplayState m_displayState; | 136 DisplayState m_displayState; |
| 139 }; | 137 }; |
| 140 | 138 |
| 141 inline bool isHTMLPlugInElement(const Element& element) | 139 inline bool isHTMLPlugInElement(const Element& element) |
| 142 { | 140 { |
| 143 return element.isHTMLElement() && toHTMLElement(element).isPluginElement(); | 141 return element.isHTMLElement() && toHTMLElement(element).isPluginElement(); |
| 144 } | 142 } |
| 145 | 143 |
| 146 inline bool isHTMLPlugInElement(const HTMLElement& element) | 144 inline bool isHTMLPlugInElement(const HTMLElement& element) |
| 147 { | 145 { |
| 148 return element.isPluginElement(); | 146 return element.isPluginElement(); |
| 149 } | 147 } |
| 150 | 148 |
| 151 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLPlugInElement); | 149 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLPlugInElement); |
| 152 | 150 |
| 153 } // namespace WebCore | 151 } // namespace WebCore |
| 154 | 152 |
| 155 #endif // HTMLPlugInElement_h | 153 #endif // HTMLPlugInElement_h |
| OLD | NEW |