| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 bool canProcessDrag() const; | 68 bool canProcessDrag() const; |
| 69 const String& url() const { return m_url; } | 69 const String& url() const { return m_url; } |
| 70 | 70 |
| 71 // Public for FrameView::addPartToUpdate() | 71 // Public for FrameView::addPartToUpdate() |
| 72 bool needsWidgetUpdate() const { return m_needsWidgetUpdate; } | 72 bool needsWidgetUpdate() const { return m_needsWidgetUpdate; } |
| 73 void setNeedsWidgetUpdate(bool needsWidgetUpdate) { m_needsWidgetUpdate = ne
edsWidgetUpdate; } | 73 void setNeedsWidgetUpdate(bool needsWidgetUpdate) { m_needsWidgetUpdate = ne
edsWidgetUpdate; } |
| 74 void updateWidget(); | 74 void updateWidget(); |
| 75 | 75 |
| 76 bool shouldAccelerate() const; | 76 bool shouldAccelerate() const; |
| 77 | 77 |
| 78 void requestPluginCreationWithoutRendererIfPossible(); | 78 void requestPluginCreationWithoutLayoutObjectIfPossible(); |
| 79 void createPluginWithoutRenderer(); | 79 void createPluginWithoutLayoutObject(); |
| 80 | 80 |
| 81 // Public for Internals::forcePluginPlaceholder. | 81 // Public for Internals::forcePluginPlaceholder. |
| 82 bool usePlaceholderContent() const { return m_placeholder; } | 82 bool usePlaceholderContent() const { return m_placeholder; } |
| 83 void setPlaceholder(PassOwnPtrWillBeRawPtr<PluginPlaceholder>); | 83 void setPlaceholder(PassOwnPtrWillBeRawPtr<PluginPlaceholder>); |
| 84 | 84 |
| 85 protected: | 85 protected: |
| 86 HTMLPlugInElement(const QualifiedName& tagName, Document&, bool createdByPar
ser, PreferPlugInsForImagesOption); | 86 HTMLPlugInElement(const QualifiedName& tagName, Document&, bool createdByPar
ser, PreferPlugInsForImagesOption); |
| 87 | 87 |
| 88 // Node functions: | 88 // Node functions: |
| 89 virtual void didMoveToNewDocument(Document& oldDocument) override; | 89 virtual void didMoveToNewDocument(Document& oldDocument) override; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 | 136 |
| 137 // HTMLElement function: | 137 // HTMLElement function: |
| 138 virtual bool hasCustomFocusLogic() const override; | 138 virtual bool hasCustomFocusLogic() const override; |
| 139 virtual bool isPluginElement() const override final; | 139 virtual bool isPluginElement() const override final; |
| 140 | 140 |
| 141 // Return any existing LayoutPart without triggering relayout, or 0 if it | 141 // Return any existing LayoutPart without triggering relayout, or 0 if it |
| 142 // doesn't yet exist. | 142 // doesn't yet exist. |
| 143 virtual LayoutPart* existingLayoutPart() const = 0; | 143 virtual LayoutPart* existingLayoutPart() const = 0; |
| 144 virtual void updateWidgetInternal() = 0; | 144 virtual void updateWidgetInternal() = 0; |
| 145 | 145 |
| 146 bool loadPlugin(const KURL&, const String& mimeType, const Vector<String>& p
aramNames, const Vector<String>& paramValues, bool useFallback, bool requireRend
erer); | 146 bool loadPlugin(const KURL&, const String& mimeType, const Vector<String>& p
aramNames, const Vector<String>& paramValues, bool useFallback, bool requireLayo
utObject); |
| 147 bool pluginIsLoadable(const KURL&, const String& mimeType); | 147 bool pluginIsLoadable(const KURL&, const String& mimeType); |
| 148 bool wouldLoadAsNetscapePlugin(const String& url, const String& serviceType)
; | 148 bool wouldLoadAsNetscapePlugin(const String& url, const String& serviceType)
; |
| 149 | 149 |
| 150 void setPersistedPluginWidget(Widget*); | 150 void setPersistedPluginWidget(Widget*); |
| 151 | 151 |
| 152 mutable RefPtr<SharedPersistent<v8::Object>> m_pluginWrapper; | 152 mutable RefPtr<SharedPersistent<v8::Object>> m_pluginWrapper; |
| 153 NPObject* m_NPObject; | 153 NPObject* m_NPObject; |
| 154 bool m_isCapturingMouseEvents; | 154 bool m_isCapturingMouseEvents; |
| 155 bool m_needsWidgetUpdate; | 155 bool m_needsWidgetUpdate; |
| 156 bool m_shouldPreferPlugInsForImages; | 156 bool m_shouldPreferPlugInsForImages; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 168 inline bool isHTMLPlugInElement(const HTMLElement& element) | 168 inline bool isHTMLPlugInElement(const HTMLElement& element) |
| 169 { | 169 { |
| 170 return element.isPluginElement(); | 170 return element.isPluginElement(); |
| 171 } | 171 } |
| 172 | 172 |
| 173 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLPlugInElement); | 173 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLPlugInElement); |
| 174 | 174 |
| 175 } // namespace blink | 175 } // namespace blink |
| 176 | 176 |
| 177 #endif // HTMLPlugInElement_h | 177 #endif // HTMLPlugInElement_h |
| OLD | NEW |