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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 USING_GARBAGE_COLLECTED_MIXIN(WebPluginContainerImpl); | 65 USING_GARBAGE_COLLECTED_MIXIN(WebPluginContainerImpl); |
66 USING_PRE_FINALIZER(WebPluginContainerImpl, dispose); | 66 USING_PRE_FINALIZER(WebPluginContainerImpl, dispose); |
67 public: | 67 public: |
68 static RawPtr<WebPluginContainerImpl> create(HTMLPlugInElement* element, Web
Plugin* webPlugin) | 68 static WebPluginContainerImpl* create(HTMLPlugInElement* element, WebPlugin*
webPlugin) |
69 { | 69 { |
70 return 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 supportsKeyboardFocus() const override; | 76 bool supportsKeyboardFocus() const override; |
77 bool supportsInputMethod() const override; | 77 bool supportsInputMethod() const override; |
78 bool canProcessDrag() const override; | 78 bool canProcessDrag() const override; |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 }; | 204 }; |
205 | 205 |
206 DEFINE_TYPE_CASTS(WebPluginContainerImpl, Widget, widget, widget->isPluginContai
ner(), widget.isPluginContainer()); | 206 DEFINE_TYPE_CASTS(WebPluginContainerImpl, Widget, widget, widget->isPluginContai
ner(), widget.isPluginContainer()); |
207 // Unlike Widget, we need not worry about object type for container. | 207 // Unlike Widget, we need not worry about object type for container. |
208 // WebPluginContainerImpl is the only subclass of WebPluginContainer. | 208 // WebPluginContainerImpl is the only subclass of WebPluginContainer. |
209 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebPluginContainer, container, true, t
rue); | 209 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebPluginContainer, container, true, t
rue); |
210 | 210 |
211 } // namespace blink | 211 } // namespace blink |
212 | 212 |
213 #endif | 213 #endif |
OLD | NEW |