| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 CreateAnyWidgetType, | 44 CreateAnyWidgetType, |
| 45 CreateOnlyNonNetscapePlugins, | 45 CreateOnlyNonNetscapePlugins, |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 class HTMLPlugInElement : public HTMLFrameOwnerElement { | 48 class HTMLPlugInElement : public HTMLFrameOwnerElement { |
| 49 public: | 49 public: |
| 50 virtual ~HTMLPlugInElement(); | 50 virtual ~HTMLPlugInElement(); |
| 51 | 51 |
| 52 void resetInstance(); | 52 void resetInstance(); |
| 53 SharedPersistent<v8::Object>* pluginWrapper(); | 53 SharedPersistent<v8::Object>* pluginWrapper(); |
| 54 Widget* pluginWidget() const; | |
| 55 NPObject* getNPObject(); | 54 NPObject* getNPObject(); |
| 56 bool canProcessDrag() const; | 55 bool canProcessDrag() const; |
| 57 const String& url() const { return m_url; } | 56 const String& url() const { return m_url; } |
| 58 | 57 |
| 59 // Public for FrameView::addWidgetToUpdate() | 58 // Public for FrameView::addWidgetToUpdate() |
| 60 bool needsWidgetUpdate() const { return m_needsWidgetUpdate; } | 59 bool needsWidgetUpdate() const { return m_needsWidgetUpdate; } |
| 61 void setNeedsWidgetUpdate(bool needsWidgetUpdate) { m_needsWidgetUpdate = ne
edsWidgetUpdate; } | 60 void setNeedsWidgetUpdate(bool needsWidgetUpdate) { m_needsWidgetUpdate = ne
edsWidgetUpdate; } |
| 62 virtual void updateWidget(PluginCreationOption) = 0; | 61 virtual void updateWidget(PluginCreationOption) = 0; |
| 63 | 62 |
| 63 void createPluginWithoutRenderer(const String& mimeType); |
| 64 |
| 64 protected: | 65 protected: |
| 65 HTMLPlugInElement(const QualifiedName& tagName, Document&, bool createdByPar
ser, PreferPlugInsForImagesOption); | 66 HTMLPlugInElement(const QualifiedName& tagName, Document&, bool createdByPar
ser, PreferPlugInsForImagesOption); |
| 66 | 67 |
| 67 // Node functions: | 68 // Node functions: |
| 68 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE; | 69 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE; |
| 69 virtual bool dispatchBeforeLoadEvent(const String& sourceURL) OVERRIDE; | 70 virtual bool dispatchBeforeLoadEvent(const String& sourceURL) OVERRIDE; |
| 70 | 71 |
| 71 // Element functions: | 72 // Element functions: |
| 72 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; | 73 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; |
| 73 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) OVERRIDE; | 74 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) OVERRIDE; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 bool m_needsWidgetUpdate; | 136 bool m_needsWidgetUpdate; |
| 136 bool m_shouldPreferPlugInsForImages; | 137 bool m_shouldPreferPlugInsForImages; |
| 137 DisplayState m_displayState; | 138 DisplayState m_displayState; |
| 138 }; | 139 }; |
| 139 | 140 |
| 140 DEFINE_NODE_TYPE_CASTS(HTMLPlugInElement, isPluginElement()); | 141 DEFINE_NODE_TYPE_CASTS(HTMLPlugInElement, isPluginElement()); |
| 141 | 142 |
| 142 } // namespace WebCore | 143 } // namespace WebCore |
| 143 | 144 |
| 144 #endif // HTMLPlugInElement_h | 145 #endif // HTMLPlugInElement_h |
| OLD | NEW |