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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 // Public for FrameView::addWidgetToUpdate() | 54 // Public for FrameView::addWidgetToUpdate() |
55 bool needsWidgetUpdate() const { return m_needsWidgetUpdate; } | 55 bool needsWidgetUpdate() const { return m_needsWidgetUpdate; } |
56 void setNeedsWidgetUpdate(bool needsWidgetUpdate) { m_needsWidgetUpdate = ne
edsWidgetUpdate; } | 56 void setNeedsWidgetUpdate(bool needsWidgetUpdate) { m_needsWidgetUpdate = ne
edsWidgetUpdate; } |
57 void updateWidget(); | 57 void updateWidget(); |
58 | 58 |
59 protected: | 59 protected: |
60 HTMLPlugInElement(const QualifiedName& tagName, Document&, bool createdByPar
ser, PreferPlugInsForImagesOption); | 60 HTMLPlugInElement(const QualifiedName& tagName, Document&, bool createdByPar
ser, PreferPlugInsForImagesOption); |
61 | 61 |
62 // Node functions: | 62 // Node functions: |
63 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE; | 63 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE; |
64 virtual bool dispatchBeforeLoadEvent(const String& sourceURL) OVERRIDE; | 64 virtual bool dispatchBeforeLoadEvent(const String& sourceURL) OVERRIDE FINAL
; |
65 | 65 |
66 // Element functions: | 66 // Element functions: |
67 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; | 67 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; |
68 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) OVERRIDE; | 68 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) OVERRIDE; |
69 | 69 |
70 virtual bool useFallbackContent() const; | 70 virtual bool useFallbackContent() const; |
71 // Create or update the RenderWidget and return it, triggering layout if | 71 // Create or update the RenderWidget and return it, triggering layout if |
72 // necessary. | 72 // necessary. |
73 virtual RenderWidget* renderWidgetForJSBindings() const; | 73 virtual RenderWidget* renderWidgetForJSBindings() const; |
74 | 74 |
75 bool isImageType(); | 75 bool isImageType(); |
76 bool shouldPreferPlugInsForImages() const { return m_shouldPreferPlugInsForI
mages; } | 76 bool shouldPreferPlugInsForImages() const { return m_shouldPreferPlugInsForI
mages; } |
77 RenderEmbeddedObject* renderEmbeddedObject() const; | 77 RenderEmbeddedObject* renderEmbeddedObject() const; |
78 bool allowedToLoadFrameURL(const String& url); | 78 bool allowedToLoadFrameURL(const String& url); |
79 bool requestObject(const String& url, const String& mimeType, const Vector<S
tring>& paramNames, const Vector<String>& paramValues); | 79 bool requestObject(const String& url, const String& mimeType, const Vector<S
tring>& paramNames, const Vector<String>& paramValues); |
80 bool shouldUsePlugin(const KURL&, const String& mimeType, bool hasFallback,
bool& useFallback); | 80 bool shouldUsePlugin(const KURL&, const String& mimeType, bool hasFallback,
bool& useFallback); |
81 | 81 |
82 String m_serviceType; | 82 String m_serviceType; |
83 String m_url; | 83 String m_url; |
84 KURL m_loadedUrl; | 84 KURL m_loadedUrl; |
85 OwnPtr<HTMLImageLoader> m_imageLoader; | 85 OwnPtr<HTMLImageLoader> m_imageLoader; |
86 bool m_isDelayingLoadEvent; | 86 bool m_isDelayingLoadEvent; |
87 | 87 |
88 private: | 88 private: |
89 // EventTarget functions: | 89 // EventTarget functions: |
90 virtual void removeAllEventListeners() OVERRIDE FINAL; | 90 virtual void removeAllEventListeners() OVERRIDE FINAL; |
91 | 91 |
92 // Node functions: | 92 // Node functions: |
93 virtual bool canContainRangeEndPoint() const OVERRIDE { return false; } | 93 virtual bool canContainRangeEndPoint() const OVERRIDE { return false; } |
94 virtual bool willRespondToMouseClickEvents() OVERRIDE; | 94 virtual bool willRespondToMouseClickEvents() OVERRIDE FINAL; |
95 virtual void defaultEventHandler(Event*) OVERRIDE; | 95 virtual void defaultEventHandler(Event*) OVERRIDE FINAL; |
96 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; | 96 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE FINAL; |
97 virtual void detach(const AttachContext& = AttachContext()) OVERRIDE; | 97 virtual void detach(const AttachContext& = AttachContext()) OVERRIDE FINAL; |
98 virtual void finishParsingChildren() OVERRIDE; | 98 virtual void finishParsingChildren() OVERRIDE FINAL; |
99 virtual bool isPluginElement() const OVERRIDE; | 99 virtual bool isPluginElement() const OVERRIDE FINAL; |
100 | 100 |
101 // Element functions: | 101 // Element functions: |
102 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; | 102 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; |
103 virtual void willRecalcStyle(StyleRecalcChange) OVERRIDE FINAL; | 103 virtual void willRecalcStyle(StyleRecalcChange) OVERRIDE FINAL; |
104 virtual bool supportsFocus() const OVERRIDE { return true; }; | 104 virtual bool supportsFocus() const OVERRIDE FINAL { return true; } |
105 virtual bool rendererIsFocusable() const OVERRIDE; | 105 virtual bool rendererIsFocusable() const OVERRIDE FINAL; |
106 virtual bool isKeyboardFocusable() const OVERRIDE; | 106 virtual bool isKeyboardFocusable() const OVERRIDE FINAL; |
107 virtual void didAddUserAgentShadowRoot(ShadowRoot&) OVERRIDE; | 107 virtual void didAddUserAgentShadowRoot(ShadowRoot&) OVERRIDE FINAL; |
108 virtual void didAddShadowRoot(ShadowRoot&) OVERRIDE; | 108 virtual void didAddShadowRoot(ShadowRoot&) OVERRIDE FINAL; |
109 | 109 |
110 // Return any existing RenderWidget without triggering relayout, or 0 if it | 110 // Return any existing RenderWidget without triggering relayout, or 0 if it |
111 // doesn't yet exist. | 111 // doesn't yet exist. |
112 virtual RenderWidget* existingRenderWidget() const = 0; | 112 virtual RenderWidget* existingRenderWidget() const = 0; |
113 virtual void updateWidgetInternal() = 0; | 113 virtual void updateWidgetInternal() = 0; |
114 | 114 |
115 enum DisplayState { | 115 enum DisplayState { |
116 Restarting, | 116 Restarting, |
117 RestartingWithPendingMouseClick, | 117 RestartingWithPendingMouseClick, |
118 Playing | 118 Playing |
(...skipping 12 matching lines...) Expand all Loading... |
131 bool m_needsWidgetUpdate; | 131 bool m_needsWidgetUpdate; |
132 bool m_shouldPreferPlugInsForImages; | 132 bool m_shouldPreferPlugInsForImages; |
133 DisplayState m_displayState; | 133 DisplayState m_displayState; |
134 }; | 134 }; |
135 | 135 |
136 DEFINE_NODE_TYPE_CASTS(HTMLPlugInElement, isPluginElement()); | 136 DEFINE_NODE_TYPE_CASTS(HTMLPlugInElement, isPluginElement()); |
137 | 137 |
138 } // namespace WebCore | 138 } // namespace WebCore |
139 | 139 |
140 #endif // HTMLPlugInElement_h | 140 #endif // HTMLPlugInElement_h |
OLD | NEW |