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 26 matching lines...) Expand all Loading... |
37 class Widget; | 37 class Widget; |
38 | 38 |
39 enum PreferPlugInsForImagesOption { | 39 enum PreferPlugInsForImagesOption { |
40 ShouldPreferPlugInsForImages, | 40 ShouldPreferPlugInsForImages, |
41 ShouldNotPreferPlugInsForImages | 41 ShouldNotPreferPlugInsForImages |
42 }; | 42 }; |
43 | 43 |
44 class HTMLPlugInElement : public HTMLFrameOwnerElement { | 44 class HTMLPlugInElement : public HTMLFrameOwnerElement { |
45 public: | 45 public: |
46 virtual ~HTMLPlugInElement(); | 46 virtual ~HTMLPlugInElement(); |
| 47 virtual void trace(Visitor*) OVERRIDE; |
47 | 48 |
48 void resetInstance(); | 49 void resetInstance(); |
49 SharedPersistent<v8::Object>* pluginWrapper(); | 50 SharedPersistent<v8::Object>* pluginWrapper(); |
50 Widget* pluginWidget() const; | 51 Widget* pluginWidget() const; |
51 NPObject* getNPObject(); | 52 NPObject* getNPObject(); |
52 bool canProcessDrag() const; | 53 bool canProcessDrag() const; |
53 const String& url() const { return m_url; } | 54 const String& url() const { return m_url; } |
54 | 55 |
55 // Public for FrameView::addWidgetToUpdate() | 56 // Public for FrameView::addWidgetToUpdate() |
56 bool needsWidgetUpdate() const { return m_needsWidgetUpdate; } | 57 bool needsWidgetUpdate() const { return m_needsWidgetUpdate; } |
(...skipping 24 matching lines...) Expand all Loading... |
81 RenderEmbeddedObject* renderEmbeddedObject() const; | 82 RenderEmbeddedObject* renderEmbeddedObject() const; |
82 bool allowedToLoadFrameURL(const String& url); | 83 bool allowedToLoadFrameURL(const String& url); |
83 bool requestObject(const String& url, const String& mimeType, const Vector<S
tring>& paramNames, const Vector<String>& paramValues); | 84 bool requestObject(const String& url, const String& mimeType, const Vector<S
tring>& paramNames, const Vector<String>& paramValues); |
84 bool shouldUsePlugin(const KURL&, const String& mimeType, bool hasFallback,
bool& useFallback); | 85 bool shouldUsePlugin(const KURL&, const String& mimeType, bool hasFallback,
bool& useFallback); |
85 | 86 |
86 void dispatchErrorEvent(); | 87 void dispatchErrorEvent(); |
87 | 88 |
88 String m_serviceType; | 89 String m_serviceType; |
89 String m_url; | 90 String m_url; |
90 KURL m_loadedUrl; | 91 KURL m_loadedUrl; |
91 OwnPtr<HTMLImageLoader> m_imageLoader; | 92 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; |
92 bool m_isDelayingLoadEvent; | 93 bool m_isDelayingLoadEvent; |
93 | 94 |
94 private: | 95 private: |
95 // EventTarget functions: | 96 // EventTarget functions: |
96 virtual void removeAllEventListeners() OVERRIDE FINAL; | 97 virtual void removeAllEventListeners() OVERRIDE FINAL; |
97 | 98 |
98 // Node functions: | 99 // Node functions: |
99 virtual bool canContainRangeEndPoint() const OVERRIDE { return false; } | 100 virtual bool canContainRangeEndPoint() const OVERRIDE { return false; } |
100 virtual bool willRespondToMouseClickEvents() OVERRIDE FINAL; | 101 virtual bool willRespondToMouseClickEvents() OVERRIDE FINAL; |
101 virtual void defaultEventHandler(Event*) OVERRIDE FINAL; | 102 virtual void defaultEventHandler(Event*) OVERRIDE FINAL; |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 inline bool isHTMLPlugInElement(const HTMLElement& element) | 156 inline bool isHTMLPlugInElement(const HTMLElement& element) |
156 { | 157 { |
157 return element.isPluginElement(); | 158 return element.isPluginElement(); |
158 } | 159 } |
159 | 160 |
160 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLPlugInElement); | 161 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLPlugInElement); |
161 | 162 |
162 } // namespace WebCore | 163 } // namespace WebCore |
163 | 164 |
164 #endif // HTMLPlugInElement_h | 165 #endif // HTMLPlugInElement_h |
OLD | NEW |