Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(369)

Side by Side Diff: Source/web/WebPluginContainerImpl.h

Issue 1026253002: Rename FrameDestructionObserver to LocalFrameLifecycleObserver. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/modules/storage/StorageArea.cpp ('k') | Source/web/WebPluginContainerImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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/FrameDestructionObserver.h" 35 #include "core/frame/LocalFrameLifecycleObserver.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 39
40 #include "wtf/OwnPtr.h" 40 #include "wtf/OwnPtr.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 struct NPObject; 45 struct NPObject;
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; 56 class ScrollbarGroup;
57 class TouchEvent; 57 class TouchEvent;
58 class WebPlugin; 58 class WebPlugin;
59 class WebPluginLoadObserver; 59 class WebPluginLoadObserver;
60 class WheelEvent; 60 class WheelEvent;
61 class Widget; 61 class Widget;
62 struct WebPrintParams; 62 struct WebPrintParams;
63 struct WebPrintPresetOptions; 63 struct WebPrintPresetOptions;
64 64
65 class WebPluginContainerImpl final : public PluginView, public WebPluginContaine r, public FrameDestructionObserver { 65 class WebPluginContainerImpl final : public PluginView, public WebPluginContaine r, public LocalFrameLifecycleObserver {
66 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WebPluginContainerImpl); 66 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WebPluginContainerImpl);
67 public: 67 public:
68 static PassRefPtrWillBeRawPtr<WebPluginContainerImpl> create(HTMLPlugInEleme nt* element, WebPlugin* webPlugin) 68 static PassRefPtrWillBeRawPtr<WebPluginContainerImpl> create(HTMLPlugInEleme nt* element, WebPlugin* webPlugin)
69 { 69 {
70 return adoptRefWillBeNoop(new WebPluginContainerImpl(element, webPlugin) ); 70 return adoptRefWillBeNoop(new WebPluginContainerImpl(element, webPlugin) );
71 } 71 }
72 72
73 // PluginView methods 73 // PluginView methods
74 virtual WebLayer* platformLayer() const override; 74 virtual WebLayer* platformLayer() const override;
75 virtual v8::Local<v8::Object> scriptableObject(v8::Isolate*) override; 75 virtual v8::Local<v8::Object> scriptableObject(v8::Isolate*) override;
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 }; 217 };
218 218
219 DEFINE_TYPE_CASTS(WebPluginContainerImpl, Widget, widget, widget->isPluginContai ner(), widget.isPluginContainer()); 219 DEFINE_TYPE_CASTS(WebPluginContainerImpl, Widget, widget, widget->isPluginContai ner(), widget.isPluginContainer());
220 // Unlike Widget, we need not worry about object type for container. 220 // Unlike Widget, we need not worry about object type for container.
221 // WebPluginContainerImpl is the only subclass of WebPluginContainer. 221 // WebPluginContainerImpl is the only subclass of WebPluginContainer.
222 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebPluginContainer, container, true, t rue); 222 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebPluginContainer, container, true, t rue);
223 223
224 } // namespace blink 224 } // namespace blink
225 225
226 #endif 226 #endif
OLDNEW
« no previous file with comments | « Source/modules/storage/StorageArea.cpp ('k') | Source/web/WebPluginContainerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698