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

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

Issue 1676083002: Extract webkit_unit_tests from blink_web component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Win dbg non-oilpan fix: make TextFinder non-copyable Created 4 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
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 18 matching lines...) Expand all
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/LocalFrameLifecycleObserver.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 #include "web/WebExport.h"
40 #include "wtf/Compiler.h"
40 #include "wtf/OwnPtr.h" 41 #include "wtf/OwnPtr.h"
41 #include "wtf/PassRefPtr.h" 42 #include "wtf/PassRefPtr.h"
42 #include "wtf/Vector.h" 43 #include "wtf/Vector.h"
43 #include "wtf/text/WTFString.h" 44 #include "wtf/text/WTFString.h"
44 45
45 struct NPObject; 46 struct NPObject;
46 47
47 namespace blink { 48 namespace blink {
48 49
49 class GestureEvent; 50 class GestureEvent;
50 class HTMLPlugInElement; 51 class HTMLPlugInElement;
51 class IntRect; 52 class IntRect;
52 class KeyboardEvent; 53 class KeyboardEvent;
53 class MouseEvent; 54 class MouseEvent;
54 class ResourceError; 55 class ResourceError;
55 class ResourceResponse; 56 class ResourceResponse;
56 class TouchEvent; 57 class TouchEvent;
57 class WebPlugin; 58 class WebPlugin;
58 class WheelEvent; 59 class WheelEvent;
59 class Widget; 60 class Widget;
60 struct WebPrintParams; 61 struct WebPrintParams;
61 struct WebPrintPresetOptions; 62 struct WebPrintPresetOptions;
62 63
63 class WebPluginContainerImpl final : public PluginView, public WebPluginContaine r, public LocalFrameLifecycleObserver { 64 class WEB_EXPORT WebPluginContainerImpl final : public PluginView, WTF_NON_EXPOR TED_BASE(public WebPluginContainer), public LocalFrameLifecycleObserver {
64 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WebPluginContainerImpl); 65 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WebPluginContainerImpl);
65 WILL_BE_USING_PRE_FINALIZER(WebPluginContainerImpl, dispose); 66 WILL_BE_USING_PRE_FINALIZER(WebPluginContainerImpl, dispose);
66 public: 67 public:
67 static PassRefPtrWillBeRawPtr<WebPluginContainerImpl> create(HTMLPlugInEleme nt* element, WebPlugin* webPlugin) 68 static PassRefPtrWillBeRawPtr<WebPluginContainerImpl> create(HTMLPlugInEleme nt* element, WebPlugin* webPlugin)
68 { 69 {
69 return adoptRefWillBeNoop(new WebPluginContainerImpl(element, webPlugin) ); 70 return adoptRefWillBeNoop(new WebPluginContainerImpl(element, webPlugin) );
70 } 71 }
71 72
72 // PluginView methods 73 // PluginView methods
73 WebLayer* platformLayer() const override; 74 WebLayer* platformLayer() const override;
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 }; 208 };
208 209
209 DEFINE_TYPE_CASTS(WebPluginContainerImpl, Widget, widget, widget->isPluginContai ner(), widget.isPluginContainer()); 210 DEFINE_TYPE_CASTS(WebPluginContainerImpl, Widget, widget, widget->isPluginContai ner(), widget.isPluginContainer());
210 // Unlike Widget, we need not worry about object type for container. 211 // Unlike Widget, we need not worry about object type for container.
211 // WebPluginContainerImpl is the only subclass of WebPluginContainer. 212 // WebPluginContainerImpl is the only subclass of WebPluginContainer.
212 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebPluginContainer, container, true, t rue); 213 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebPluginContainer, container, true, t rue);
213 214
214 } // namespace blink 215 } // namespace blink
215 216
216 #endif 217 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.h ('k') | third_party/WebKit/Source/web/WebRemoteFrameImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698