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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 virtual RenderWidget* renderWidgetForJSBindings() const; | 83 virtual RenderWidget* renderWidgetForJSBindings() const; |
84 | 84 |
85 bool isImageType(); | 85 bool isImageType(); |
86 bool shouldPreferPlugInsForImages() const { return m_shouldPreferPlugInsForI
mages; } | 86 bool shouldPreferPlugInsForImages() const { return m_shouldPreferPlugInsForI
mages; } |
87 RenderEmbeddedObject* renderEmbeddedObject() const; | 87 RenderEmbeddedObject* renderEmbeddedObject() const; |
88 bool allowedToLoadFrameURL(const String& url); | 88 bool allowedToLoadFrameURL(const String& url); |
89 bool requestObject(const String& url, const String& mimeType, const Vector<S
tring>& paramNames, const Vector<String>& paramValues); | 89 bool requestObject(const String& url, const String& mimeType, const Vector<S
tring>& paramNames, const Vector<String>& paramValues); |
90 bool shouldUsePlugin(const KURL&, const String& mimeType, bool hasFallback,
bool& useFallback); | 90 bool shouldUsePlugin(const KURL&, const String& mimeType, bool hasFallback,
bool& useFallback); |
91 | 91 |
92 void dispatchErrorEvent(); | 92 void dispatchErrorEvent(); |
| 93 void lazyReattachIfNeeded(); |
93 | 94 |
94 String m_serviceType; | 95 String m_serviceType; |
95 String m_url; | 96 String m_url; |
96 KURL m_loadedUrl; | 97 KURL m_loadedUrl; |
97 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; | 98 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; |
98 bool m_isDelayingLoadEvent; | 99 bool m_isDelayingLoadEvent; |
99 | 100 |
100 private: | 101 private: |
101 // EventTarget functions: | 102 // EventTarget functions: |
102 virtual void removeAllEventListeners() OVERRIDE FINAL; | 103 virtual void removeAllEventListeners() OVERRIDE FINAL; |
103 | 104 |
104 // Node functions: | 105 // Node functions: |
105 virtual bool canContainRangeEndPoint() const OVERRIDE { return false; } | 106 virtual bool canContainRangeEndPoint() const OVERRIDE { return false; } |
106 virtual bool willRespondToMouseClickEvents() OVERRIDE FINAL; | 107 virtual bool willRespondToMouseClickEvents() OVERRIDE FINAL; |
107 virtual void defaultEventHandler(Event*) OVERRIDE FINAL; | 108 virtual void defaultEventHandler(Event*) OVERRIDE FINAL; |
108 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE FINAL; | 109 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE FINAL; |
109 virtual void detach(const AttachContext& = AttachContext()) OVERRIDE FINAL; | 110 virtual void detach(const AttachContext& = AttachContext()) OVERRIDE FINAL; |
110 virtual void finishParsingChildren() OVERRIDE FINAL; | 111 virtual void finishParsingChildren() OVERRIDE FINAL; |
111 | 112 |
112 // Element functions: | 113 // Element functions: |
113 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; | 114 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; |
114 virtual void willRecalcStyle(StyleRecalcChange) OVERRIDE FINAL; | |
115 virtual bool supportsFocus() const OVERRIDE FINAL { return true; } | 115 virtual bool supportsFocus() const OVERRIDE FINAL { return true; } |
116 virtual bool rendererIsFocusable() const OVERRIDE FINAL; | 116 virtual bool rendererIsFocusable() const OVERRIDE FINAL; |
117 virtual bool isKeyboardFocusable() const OVERRIDE FINAL; | 117 virtual bool isKeyboardFocusable() const OVERRIDE FINAL; |
118 virtual void didAddUserAgentShadowRoot(ShadowRoot&) OVERRIDE FINAL; | 118 virtual void didAddUserAgentShadowRoot(ShadowRoot&) OVERRIDE FINAL; |
119 virtual void willAddFirstAuthorShadowRoot() OVERRIDE FINAL; | 119 virtual void willAddFirstAuthorShadowRoot() OVERRIDE FINAL; |
120 | 120 |
121 // HTMLElement function: | 121 // HTMLElement function: |
122 virtual bool hasCustomFocusLogic() const OVERRIDE; | 122 virtual bool hasCustomFocusLogic() const OVERRIDE; |
123 virtual bool isPluginElement() const OVERRIDE FINAL; | 123 virtual bool isPluginElement() const OVERRIDE FINAL; |
124 | 124 |
(...skipping 24 matching lines...) Expand all Loading... |
149 inline bool isHTMLPlugInElement(const HTMLElement& element) | 149 inline bool isHTMLPlugInElement(const HTMLElement& element) |
150 { | 150 { |
151 return element.isPluginElement(); | 151 return element.isPluginElement(); |
152 } | 152 } |
153 | 153 |
154 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLPlugInElement); | 154 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLPlugInElement); |
155 | 155 |
156 } // namespace blink | 156 } // namespace blink |
157 | 157 |
158 #endif // HTMLPlugInElement_h | 158 #endif // HTMLPlugInElement_h |
OLD | NEW |