| 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 14 matching lines...) Expand all Loading... |
| 25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 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/frame/DOMWindowProperty.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/Widget.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; |
| 48 class HTMLFrameOwnerElement; | 48 class HTMLFrameOwnerElement; |
| 49 class HTMLPlugInElement; | 49 class HTMLPlugInElement; |
| 50 class IntRect; | 50 class IntRect; |
| 51 class KeyboardEvent; | 51 class KeyboardEvent; |
| 52 class MouseEvent; | 52 class MouseEvent; |
| 53 class ResourceError; | 53 class ResourceError; |
| 54 class ResourceResponse; | 54 class ResourceResponse; |
| 55 class TouchEvent; | 55 class TouchEvent; |
| 56 class WebPlugin; | 56 class WebPlugin; |
| 57 class WheelEvent; | 57 class WheelEvent; |
| 58 class Widget; | 58 class Widget; |
| 59 struct WebPrintParams; | 59 struct WebPrintParams; |
| 60 struct WebPrintPresetOptions; | 60 struct WebPrintPresetOptions; |
| 61 | 61 |
| 62 class WEB_EXPORT WebPluginContainerImpl final | 62 class WEB_EXPORT WebPluginContainerImpl final |
| 63 : public PluginView, | 63 : public PluginView, |
| 64 NON_EXPORTED_BASE(public WebPluginContainer), | 64 NON_EXPORTED_BASE(public WebPluginContainer), |
| 65 public DOMWindowProperty { | 65 public ContextClient { |
| 66 USING_GARBAGE_COLLECTED_MIXIN(WebPluginContainerImpl); | 66 USING_GARBAGE_COLLECTED_MIXIN(WebPluginContainerImpl); |
| 67 USING_PRE_FINALIZER(WebPluginContainerImpl, dispose); | 67 USING_PRE_FINALIZER(WebPluginContainerImpl, dispose); |
| 68 | 68 |
| 69 public: | 69 public: |
| 70 static WebPluginContainerImpl* create(HTMLPlugInElement* element, | 70 static WebPluginContainerImpl* create(HTMLPlugInElement* element, |
| 71 WebPlugin* webPlugin) { | 71 WebPlugin* webPlugin) { |
| 72 return new WebPluginContainerImpl(element, webPlugin); | 72 return new WebPluginContainerImpl(element, webPlugin); |
| 73 } | 73 } |
| 74 | 74 |
| 75 // PluginView methods | 75 // PluginView methods |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 // WebPluginContainerImpl is the only subclass of WebPluginContainer. | 229 // WebPluginContainerImpl is the only subclass of WebPluginContainer. |
| 230 DEFINE_TYPE_CASTS(WebPluginContainerImpl, | 230 DEFINE_TYPE_CASTS(WebPluginContainerImpl, |
| 231 WebPluginContainer, | 231 WebPluginContainer, |
| 232 container, | 232 container, |
| 233 true, | 233 true, |
| 234 true); | 234 true); |
| 235 | 235 |
| 236 } // namespace blink | 236 } // namespace blink |
| 237 | 237 |
| 238 #endif | 238 #endif |
| OLD | NEW |