| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 class ResourceError; | 55 class ResourceError; |
| 56 class ResourceResponse; | 56 class ResourceResponse; |
| 57 class TouchEvent; | 57 class TouchEvent; |
| 58 class WebPlugin; | 58 class WebPlugin; |
| 59 class WheelEvent; | 59 class WheelEvent; |
| 60 class Widget; | 60 class Widget; |
| 61 struct WebPrintParams; | 61 struct WebPrintParams; |
| 62 struct WebPrintPresetOptions; | 62 struct WebPrintPresetOptions; |
| 63 | 63 |
| 64 class WEB_EXPORT WebPluginContainerImpl final : public PluginView, WTF_NON_EXPOR
TED_BASE(public WebPluginContainer), public LocalFrameLifecycleObserver { | 64 class WEB_EXPORT WebPluginContainerImpl final : public PluginView, WTF_NON_EXPOR
TED_BASE(public WebPluginContainer), public LocalFrameLifecycleObserver { |
| 65 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WebPluginContainerImpl); | 65 USING_GARBAGE_COLLECTED_MIXIN(WebPluginContainerImpl); |
| 66 WILL_BE_USING_PRE_FINALIZER(WebPluginContainerImpl, dispose); | 66 USING_PRE_FINALIZER(WebPluginContainerImpl, dispose); |
| 67 public: | 67 public: |
| 68 static PassRefPtrWillBeRawPtr<WebPluginContainerImpl> create(HTMLPlugInEleme
nt* element, WebPlugin* webPlugin) | 68 static RawPtr<WebPluginContainerImpl> create(HTMLPlugInElement* element, Web
Plugin* webPlugin) |
| 69 { | 69 { |
| 70 return adoptRefWillBeNoop(new WebPluginContainerImpl(element, webPlugin)
); | 70 return new WebPluginContainerImpl(element, webPlugin); |
| 71 } | 71 } |
| 72 | 72 |
| 73 // PluginView methods | 73 // PluginView methods |
| 74 WebLayer* platformLayer() const override; | 74 WebLayer* platformLayer() const override; |
| 75 v8::Local<v8::Object> scriptableObject(v8::Isolate*) override; | 75 v8::Local<v8::Object> scriptableObject(v8::Isolate*) override; |
| 76 bool getFormValue(String&) override; | 76 bool getFormValue(String&) 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; |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 IntRect& windowRect, | 187 IntRect& windowRect, |
| 188 IntRect& clipRect, | 188 IntRect& clipRect, |
| 189 IntRect& unobscuredRect, | 189 IntRect& unobscuredRect, |
| 190 Vector<IntRect>& cutOutRects); | 190 Vector<IntRect>& cutOutRects); |
| 191 void windowCutOutRects( | 191 void windowCutOutRects( |
| 192 const IntRect& frameRect, | 192 const IntRect& frameRect, |
| 193 Vector<IntRect>& cutOutRects); | 193 Vector<IntRect>& cutOutRects); |
| 194 | 194 |
| 195 friend class WebPluginContainerTest; | 195 friend class WebPluginContainerTest; |
| 196 | 196 |
| 197 RawPtrWillBeMember<HTMLPlugInElement> m_element; | 197 Member<HTMLPlugInElement> m_element; |
| 198 WebPlugin* m_webPlugin; | 198 WebPlugin* m_webPlugin; |
| 199 | 199 |
| 200 WebLayer* m_webLayer; | 200 WebLayer* m_webLayer; |
| 201 | 201 |
| 202 IntRect m_pendingInvalidationRect; | 202 IntRect m_pendingInvalidationRect; |
| 203 | 203 |
| 204 TouchEventRequestType m_touchEventRequestType; | 204 TouchEventRequestType m_touchEventRequestType; |
| 205 bool m_wantsWheelEvents; | 205 bool m_wantsWheelEvents; |
| 206 | 206 |
| 207 bool m_isDisposed; | 207 bool m_isDisposed; |
| 208 }; | 208 }; |
| 209 | 209 |
| 210 DEFINE_TYPE_CASTS(WebPluginContainerImpl, Widget, widget, widget->isPluginContai
ner(), widget.isPluginContainer()); | 210 DEFINE_TYPE_CASTS(WebPluginContainerImpl, Widget, widget, widget->isPluginContai
ner(), widget.isPluginContainer()); |
| 211 // Unlike Widget, we need not worry about object type for container. | 211 // Unlike Widget, we need not worry about object type for container. |
| 212 // WebPluginContainerImpl is the only subclass of WebPluginContainer. | 212 // WebPluginContainerImpl is the only subclass of WebPluginContainer. |
| 213 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebPluginContainer, container, true, t
rue); | 213 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebPluginContainer, container, true, t
rue); |
| 214 | 214 |
| 215 } // namespace blink | 215 } // namespace blink |
| 216 | 216 |
| 217 #endif | 217 #endif |
| OLD | NEW |