| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 namespace blink { | 47 namespace blink { |
| 48 | 48 |
| 49 class GestureEvent; | 49 class GestureEvent; |
| 50 class HTMLPlugInElement; | 50 class HTMLPlugInElement; |
| 51 class IntRect; | 51 class IntRect; |
| 52 class KeyboardEvent; | 52 class KeyboardEvent; |
| 53 class MouseEvent; | 53 class MouseEvent; |
| 54 class ResourceError; | 54 class ResourceError; |
| 55 class ResourceResponse; | 55 class ResourceResponse; |
| 56 class ScrollbarGroup; | |
| 57 class TouchEvent; | 56 class TouchEvent; |
| 58 class WebPlugin; | 57 class WebPlugin; |
| 59 class WebPluginLoadObserver; | 58 class WebPluginLoadObserver; |
| 60 class WheelEvent; | 59 class WheelEvent; |
| 61 class Widget; | 60 class Widget; |
| 62 struct WebPrintParams; | 61 struct WebPrintParams; |
| 63 struct WebPrintPresetOptions; | 62 struct WebPrintPresetOptions; |
| 64 | 63 |
| 65 class WebPluginContainerImpl final : public PluginView, public WebPluginContaine
r, public LocalFrameLifecycleObserver { | 64 class WebPluginContainerImpl final : public PluginView, public WebPluginContaine
r, public LocalFrameLifecycleObserver { |
| 66 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WebPluginContainerImpl); | 65 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WebPluginContainerImpl); |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 bool executeEditCommand(const WebString& name, const WebString& value); | 150 bool executeEditCommand(const WebString& name, const WebString& value); |
| 152 | 151 |
| 153 // Resource load events for the plugin's source data: | 152 // Resource load events for the plugin's source data: |
| 154 virtual void didReceiveResponse(const ResourceResponse&) override; | 153 virtual void didReceiveResponse(const ResourceResponse&) override; |
| 155 virtual void didReceiveData(const char *data, int dataLength) override; | 154 virtual void didReceiveData(const char *data, int dataLength) override; |
| 156 virtual void didFinishLoading() override; | 155 virtual void didFinishLoading() override; |
| 157 virtual void didFailLoading(const ResourceError&) override; | 156 virtual void didFailLoading(const ResourceError&) override; |
| 158 | 157 |
| 159 void willDestroyPluginLoadObserver(WebPluginLoadObserver*); | 158 void willDestroyPluginLoadObserver(WebPluginLoadObserver*); |
| 160 | 159 |
| 161 ScrollbarGroup* scrollbarGroup(); | |
| 162 | |
| 163 void willStartLiveResize(); | |
| 164 void willEndLiveResize(); | |
| 165 | |
| 166 DECLARE_VIRTUAL_TRACE(); | 160 DECLARE_VIRTUAL_TRACE(); |
| 167 virtual void dispose() override; | 161 virtual void dispose() override; |
| 168 | 162 |
| 169 #if ENABLE(OILPAN) | 163 #if ENABLE(OILPAN) |
| 170 virtual LocalFrame* pluginFrame() const override { return frame(); } | 164 virtual LocalFrame* pluginFrame() const override { return frame(); } |
| 171 virtual void shouldDisposePlugin() override; | 165 virtual void shouldDisposePlugin() override; |
| 172 #endif | 166 #endif |
| 173 | 167 |
| 174 private: | 168 private: |
| 175 WebPluginContainerImpl(HTMLPlugInElement*, WebPlugin*); | 169 WebPluginContainerImpl(HTMLPlugInElement*, WebPlugin*); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 201 WebPlugin* m_webPlugin; | 195 WebPlugin* m_webPlugin; |
| 202 Vector<WebPluginLoadObserver*> m_pluginLoadObservers; | 196 Vector<WebPluginLoadObserver*> m_pluginLoadObservers; |
| 203 | 197 |
| 204 WebLayer* m_webLayer; | 198 WebLayer* m_webLayer; |
| 205 | 199 |
| 206 IntRect m_pendingInvalidationRect; | 200 IntRect m_pendingInvalidationRect; |
| 207 | 201 |
| 208 // TODO(schenney) Needed while layout is still called during paint in some p
lugins | 202 // TODO(schenney) Needed while layout is still called during paint in some p
lugins |
| 209 bool m_isInPaint; | 203 bool m_isInPaint; |
| 210 | 204 |
| 211 // The associated scrollbar group object, created lazily. Used for Pepper | |
| 212 // scrollbars. | |
| 213 OwnPtr<ScrollbarGroup> m_scrollbarGroup; | |
| 214 | |
| 215 TouchEventRequestType m_touchEventRequestType; | 205 TouchEventRequestType m_touchEventRequestType; |
| 216 bool m_wantsWheelEvents; | 206 bool m_wantsWheelEvents; |
| 217 | 207 |
| 218 #if ENABLE(OILPAN) | 208 #if ENABLE(OILPAN) |
| 219 // Oilpan: if true, the plugin container must dispose | 209 // Oilpan: if true, the plugin container must dispose |
| 220 // of its plugin when being finalized. | 210 // of its plugin when being finalized. |
| 221 bool m_shouldDisposePlugin; | 211 bool m_shouldDisposePlugin; |
| 222 #endif | 212 #endif |
| 223 }; | 213 }; |
| 224 | 214 |
| 225 DEFINE_TYPE_CASTS(WebPluginContainerImpl, Widget, widget, widget->isPluginContai
ner(), widget.isPluginContainer()); | 215 DEFINE_TYPE_CASTS(WebPluginContainerImpl, Widget, widget, widget->isPluginContai
ner(), widget.isPluginContainer()); |
| 226 // Unlike Widget, we need not worry about object type for container. | 216 // Unlike Widget, we need not worry about object type for container. |
| 227 // WebPluginContainerImpl is the only subclass of WebPluginContainer. | 217 // WebPluginContainerImpl is the only subclass of WebPluginContainer. |
| 228 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebPluginContainer, container, true, t
rue); | 218 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebPluginContainer, container, true, t
rue); |
| 229 | 219 |
| 230 } // namespace blink | 220 } // namespace blink |
| 231 | 221 |
| 232 #endif | 222 #endif |
| OLD | NEW |