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

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

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