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

Side by Side Diff: third_party/WebKit/Source/core/plugins/PluginView.h

Issue 2723993002: Rename platform/Widget to platform/FrameViewBase in core. (Closed)
Patch Set: Created 3 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) 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Google Inc. All rights reserved. 3 * Copyright (C) 2013 Google Inc. All rights reserved.
4 * Copyright (C) 2014 Opera Software ASA. All rights reserved. 4 * Copyright (C) 2014 Opera Software ASA. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. 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 11 matching lines...) Expand all
22 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
25 * DAMAGE. 25 * DAMAGE.
26 */ 26 */
27 27
28 #ifndef PluginView_h 28 #ifndef PluginView_h
29 #define PluginView_h 29 #define PluginView_h
30 30
31 #include "core/CoreExport.h" 31 #include "core/CoreExport.h"
32 #include "platform/Widget.h" 32 #include "platform/FrameViewBase.h"
33 #include "platform/scroll/ScrollTypes.h" 33 #include "platform/scroll/ScrollTypes.h"
34 #include "v8/include/v8.h" 34 #include "v8/include/v8.h"
35 #include "wtf/text/WTFString.h" 35 #include "wtf/text/WTFString.h"
36 36
37 namespace blink { 37 namespace blink {
38 class WebLayer; 38 class WebLayer;
39 } 39 }
40 40
41 namespace blink { 41 namespace blink {
42 42
43 class ResourceResponse; 43 class ResourceResponse;
44 44
45 class CORE_EXPORT PluginView : public Widget { 45 class CORE_EXPORT PluginView : public FrameViewBase {
46 public: 46 public:
47 bool isPluginView() const final { return true; } 47 bool isPluginView() const final { return true; }
48 48
49 virtual WebLayer* platformLayer() const { return 0; } 49 virtual WebLayer* platformLayer() const { return 0; }
50 virtual v8::Local<v8::Object> scriptableObject(v8::Isolate*) { 50 virtual v8::Local<v8::Object> scriptableObject(v8::Isolate*) {
51 return v8::Local<v8::Object>(); 51 return v8::Local<v8::Object>();
52 } 52 }
53 virtual bool wantsWheelEvents() { return false; } 53 virtual bool wantsWheelEvents() { return false; }
54 virtual bool supportsKeyboardFocus() const { return false; } 54 virtual bool supportsKeyboardFocus() const { return false; }
55 virtual bool supportsInputMethod() const { return false; } 55 virtual bool supportsInputMethod() const { return false; }
56 virtual bool canProcessDrag() const { return false; } 56 virtual bool canProcessDrag() const { return false; }
57 57
58 virtual void didReceiveResponse(const ResourceResponse&) {} 58 virtual void didReceiveResponse(const ResourceResponse&) {}
59 virtual void didReceiveData(const char*, int) {} 59 virtual void didReceiveData(const char*, int) {}
60 60
61 virtual void updateAllLifecyclePhases() {} 61 virtual void updateAllLifecyclePhases() {}
62 virtual void invalidatePaintIfNeeded() {} 62 virtual void invalidatePaintIfNeeded() {}
63 63
64 protected: 64 protected:
65 PluginView() : Widget() {} 65 PluginView() : FrameViewBase() {}
66 }; 66 };
67 67
68 DEFINE_TYPE_CASTS(PluginView, 68 DEFINE_TYPE_CASTS(PluginView,
69 Widget, 69 FrameViewBase,
70 widget, 70 frameViewBase,
71 widget->isPluginView(), 71 frameViewBase->isPluginView(),
72 widget.isPluginView()); 72 frameViewBase.isPluginView());
73 73
74 } // namespace blink 74 } // namespace blink
75 75
76 #endif // PluginView_h 76 #endif // PluginView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698