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

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

Issue 2845583002: Remove FrameViewBase as base class of RemoteFrameView. (Closed)
Patch Set: ConvertSelfToChild take FrameOrPlugin as arg Created 3 years, 7 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 class ResourceResponse; 43 class ResourceResponse;
44 class WebLayer; 44 class WebLayer;
45 45
46 // TODO(joelhockey): Remove this class. 46 // TODO(joelhockey): Remove this class.
47 // The only implementation of this class is web/WebPluginContainerImpl. 47 // The only implementation of this class is web/WebPluginContainerImpl.
48 // It can be used directly. 48 // It can be used directly.
49 class CORE_EXPORT PluginView : public FrameOrPlugin { 49 class CORE_EXPORT PluginView : public FrameOrPlugin {
50 public: 50 public:
51 virtual ~PluginView() {} 51 virtual ~PluginView() {}
52 52
53 bool IsPluginView() const override { return true; }
54
53 virtual void SetParent(FrameView*) = 0; 55 virtual void SetParent(FrameView*) = 0;
54 virtual FrameView* Parent() const = 0; 56 virtual FrameView* Parent() const = 0;
55 virtual void SetParentVisible(bool) = 0; 57 virtual void SetParentVisible(bool) = 0;
56 virtual void SetFocused(bool, WebFocusType) = 0; 58 virtual void SetFocused(bool, WebFocusType) = 0;
57 virtual void FrameRectsChanged() = 0; 59 virtual void FrameRectsChanged() = 0;
58 virtual void GeometryMayHaveChanged() = 0; 60 virtual void GeometryMayHaveChanged() = 0;
59 virtual void HandleEvent(Event*) = 0; 61 virtual void HandleEvent(Event*) = 0;
60 virtual void EventListenersRemoved() = 0; 62 virtual void EventListenersRemoved() = 0;
61 virtual bool IsPluginContainer() const { return false; } 63 virtual bool IsPluginContainer() const { return false; }
62 virtual bool IsErrorplaceholder() { return false; } 64 virtual bool IsErrorplaceholder() { return false; }
63 65
64 virtual WebLayer* PlatformLayer() const { return 0; } 66 virtual WebLayer* PlatformLayer() const { return 0; }
65 virtual v8::Local<v8::Object> ScriptableObject(v8::Isolate*) { 67 virtual v8::Local<v8::Object> ScriptableObject(v8::Isolate*) {
66 return v8::Local<v8::Object>(); 68 return v8::Local<v8::Object>();
67 } 69 }
68 virtual bool WantsWheelEvents() { return false; } 70 virtual bool WantsWheelEvents() { return false; }
69 virtual bool SupportsKeyboardFocus() const { return false; } 71 virtual bool SupportsKeyboardFocus() const { return false; }
70 virtual bool SupportsInputMethod() const { return false; } 72 virtual bool SupportsInputMethod() const { return false; }
71 virtual bool CanProcessDrag() const { return false; } 73 virtual bool CanProcessDrag() const { return false; }
72 74
73 virtual void DidReceiveResponse(const ResourceResponse&) {} 75 virtual void DidReceiveResponse(const ResourceResponse&) {}
74 virtual void DidReceiveData(const char*, int) {} 76 virtual void DidReceiveData(const char*, int) {}
75 77
76 virtual void UpdateAllLifecyclePhases() {} 78 virtual void UpdateAllLifecyclePhases() {}
77 virtual void InvalidatePaint() {} 79 virtual void InvalidatePaint() {}
78 }; 80 };
79 81
82 DEFINE_TYPE_CASTS(PluginView,
83 FrameOrPlugin,
84 frame_or_plugin,
85 frame_or_plugin->IsPluginView(),
86 frame_or_plugin.IsPluginView());
87
80 } // namespace blink 88 } // namespace blink
81 89
82 #endif // PluginView_h 90 #endif // PluginView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698