| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 bool allowedToLoadFrameURL(const String& url); | 89 bool allowedToLoadFrameURL(const String& url); |
| 90 bool requestObject(const String& url, const String& mimeType, const Vector<S
tring>& paramNames, const Vector<String>& paramValues); | 90 bool requestObject(const String& url, const String& mimeType, const Vector<S
tring>& paramNames, const Vector<String>& paramValues); |
| 91 bool shouldUsePlugin(const KURL&, const String& mimeType, bool hasFallback,
bool& useFallback); | 91 bool shouldUsePlugin(const KURL&, const String& mimeType, bool hasFallback,
bool& useFallback); |
| 92 | 92 |
| 93 void dispatchErrorEvent(); | 93 void dispatchErrorEvent(); |
| 94 void lazyReattachIfNeeded(); | 94 void lazyReattachIfNeeded(); |
| 95 | 95 |
| 96 String m_serviceType; | 96 String m_serviceType; |
| 97 String m_url; | 97 String m_url; |
| 98 KURL m_loadedUrl; | 98 KURL m_loadedUrl; |
| 99 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; | 99 Member<HTMLImageLoader> m_imageLoader; |
| 100 bool m_isDelayingLoadEvent; | 100 bool m_isDelayingLoadEvent; |
| 101 | 101 |
| 102 private: | 102 private: |
| 103 // EventTarget functions: | 103 // EventTarget functions: |
| 104 void removeAllEventListeners() final; | 104 void removeAllEventListeners() final; |
| 105 | 105 |
| 106 // Node functions: | 106 // Node functions: |
| 107 bool canContainRangeEndPoint() const override { return false; } | 107 bool canContainRangeEndPoint() const override { return false; } |
| 108 bool willRespondToMouseClickEvents() final; | 108 bool willRespondToMouseClickEvents() final; |
| 109 void defaultEventHandler(Event*) final; | 109 void defaultEventHandler(Event*) final; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 137 mutable RefPtr<SharedPersistent<v8::Object>> m_pluginWrapper; | 137 mutable RefPtr<SharedPersistent<v8::Object>> m_pluginWrapper; |
| 138 NPObject* m_NPObject; | 138 NPObject* m_NPObject; |
| 139 bool m_needsWidgetUpdate; | 139 bool m_needsWidgetUpdate; |
| 140 bool m_shouldPreferPlugInsForImages; | 140 bool m_shouldPreferPlugInsForImages; |
| 141 | 141 |
| 142 // Normally the Widget is stored in HTMLFrameOwnerElement::m_widget. | 142 // Normally the Widget is stored in HTMLFrameOwnerElement::m_widget. |
| 143 // However, plugins can persist even when not rendered. In order to | 143 // However, plugins can persist even when not rendered. In order to |
| 144 // prevent confusing code which may assume that widget() != null | 144 // prevent confusing code which may assume that widget() != null |
| 145 // means the frame is active, we save off m_widget here while | 145 // means the frame is active, we save off m_widget here while |
| 146 // the plugin is persisting but not being displayed. | 146 // the plugin is persisting but not being displayed. |
| 147 RefPtrWillBeMember<Widget> m_persistedPluginWidget; | 147 Member<Widget> m_persistedPluginWidget; |
| 148 }; | 148 }; |
| 149 | 149 |
| 150 inline bool isHTMLPlugInElement(const HTMLElement& element) | 150 inline bool isHTMLPlugInElement(const HTMLElement& element) |
| 151 { | 151 { |
| 152 return element.isPluginElement(); | 152 return element.isPluginElement(); |
| 153 } | 153 } |
| 154 | 154 |
| 155 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLPlugInElement); | 155 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLPlugInElement); |
| 156 | 156 |
| 157 } // namespace blink | 157 } // namespace blink |
| 158 | 158 |
| 159 #endif // HTMLPlugInElement_h | 159 #endif // HTMLPlugInElement_h |
| OLD | NEW |