| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2014 Opera Software ASA. All rights reserved. | 3 * Copyright (C) 2014 Opera Software ASA. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 30 */ | 30 */ |
| 31 | 31 |
| 32 #ifndef WebPluginContainerImpl_h | 32 #ifndef WebPluginContainerImpl_h |
| 33 #define WebPluginContainerImpl_h | 33 #define WebPluginContainerImpl_h |
| 34 | 34 |
| 35 #include "core/dom/ContextLifecycleObserver.h" | 35 #include "core/dom/ContextLifecycleObserver.h" |
| 36 #include "core/plugins/PluginView.h" | 36 #include "core/plugins/PluginView.h" |
| 37 #include "platform/Widget.h" | 37 #include "platform/FrameViewBase.h" |
| 38 #include "public/web/WebPluginContainer.h" | 38 #include "public/web/WebPluginContainer.h" |
| 39 #include "web/WebExport.h" | 39 #include "web/WebExport.h" |
| 40 #include "wtf/Compiler.h" | 40 #include "wtf/Compiler.h" |
| 41 #include "wtf/PassRefPtr.h" | 41 #include "wtf/PassRefPtr.h" |
| 42 #include "wtf/Vector.h" | 42 #include "wtf/Vector.h" |
| 43 #include "wtf/text/WTFString.h" | 43 #include "wtf/text/WTFString.h" |
| 44 | 44 |
| 45 namespace blink { | 45 namespace blink { |
| 46 | 46 |
| 47 class GestureEvent; | 47 class GestureEvent; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 74 // PluginView methods | 74 // PluginView methods |
| 75 WebLayer* platformLayer() const override; | 75 WebLayer* platformLayer() const override; |
| 76 v8::Local<v8::Object> scriptableObject(v8::Isolate*) override; | 76 v8::Local<v8::Object> scriptableObject(v8::Isolate*) override; |
| 77 bool supportsKeyboardFocus() const override; | 77 bool supportsKeyboardFocus() const override; |
| 78 bool supportsInputMethod() const override; | 78 bool supportsInputMethod() const override; |
| 79 bool canProcessDrag() const override; | 79 bool canProcessDrag() const override; |
| 80 bool wantsWheelEvents() override; | 80 bool wantsWheelEvents() override; |
| 81 void updateAllLifecyclePhases() override; | 81 void updateAllLifecyclePhases() override; |
| 82 void invalidatePaintIfNeeded() override { issuePaintInvalidations(); } | 82 void invalidatePaintIfNeeded() override { issuePaintInvalidations(); } |
| 83 | 83 |
| 84 // Widget methods | 84 // FrameViewBase methods |
| 85 void setFrameRect(const IntRect&) override; | 85 void setFrameRect(const IntRect&) override; |
| 86 void paint(GraphicsContext&, const CullRect&) const override; | 86 void paint(GraphicsContext&, const CullRect&) const override; |
| 87 void invalidateRect(const IntRect&) override; | 87 void invalidateRect(const IntRect&) override; |
| 88 void setFocused(bool, WebFocusType) override; | 88 void setFocused(bool, WebFocusType) override; |
| 89 void show() override; | 89 void show() override; |
| 90 void hide() override; | 90 void hide() override; |
| 91 void handleEvent(Event*) override; | 91 void handleEvent(Event*) override; |
| 92 void frameRectsChanged() override; | 92 void frameRectsChanged() override; |
| 93 void setParentVisible(bool) override; | 93 void setParentVisible(bool) override; |
| 94 void widgetGeometryMayHaveChanged() override; | 94 void widgetGeometryMayHaveChanged() override; |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 | 213 |
| 214 IntRect m_pendingInvalidationRect; | 214 IntRect m_pendingInvalidationRect; |
| 215 | 215 |
| 216 TouchEventRequestType m_touchEventRequestType; | 216 TouchEventRequestType m_touchEventRequestType; |
| 217 bool m_wantsWheelEvents; | 217 bool m_wantsWheelEvents; |
| 218 | 218 |
| 219 bool m_isDisposed; | 219 bool m_isDisposed; |
| 220 }; | 220 }; |
| 221 | 221 |
| 222 DEFINE_TYPE_CASTS(WebPluginContainerImpl, | 222 DEFINE_TYPE_CASTS(WebPluginContainerImpl, |
| 223 Widget, | 223 FrameViewBase, |
| 224 widget, | 224 frameViewBase, |
| 225 widget->isPluginContainer(), | 225 frameViewBase->isPluginContainer(), |
| 226 widget.isPluginContainer()); | 226 frameViewBase.isPluginContainer()); |
| 227 // Unlike Widget, we need not worry about object type for container. | 227 // Unlike FrameViewBase, we need not worry about object type for container. |
| 228 // WebPluginContainerImpl is the only subclass of WebPluginContainer. | 228 // WebPluginContainerImpl is the only subclass of WebPluginContainer. |
| 229 DEFINE_TYPE_CASTS(WebPluginContainerImpl, | 229 DEFINE_TYPE_CASTS(WebPluginContainerImpl, |
| 230 WebPluginContainer, | 230 WebPluginContainer, |
| 231 container, | 231 container, |
| 232 true, | 232 true, |
| 233 true); | 233 true); |
| 234 | 234 |
| 235 } // namespace blink | 235 } // namespace blink |
| 236 | 236 |
| 237 #endif | 237 #endif |
| OLD | NEW |