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

Side by Side Diff: third_party/WebKit/Source/core/frame/FrameOrPlugin.h

Issue 2845583002: Remove FrameViewBase as base class of RemoteFrameView. (Closed)
Patch Set: fix scrollbar inactive 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 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef FrameOrPlugin_h 5 #ifndef FrameOrPlugin_h
6 #define FrameOrPlugin_h 6 #define FrameOrPlugin_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "platform/heap/Handle.h" 9 #include "platform/heap/Handle.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class CullRect; 13 class CullRect;
14 class FrameView;
14 class GraphicsContext; 15 class GraphicsContext;
15 class IntRect; 16 class IntRect;
16 17
17 // FrameOrPlugin is a pure virtual class which is implemented by FrameView, 18 // FrameOrPlugin is a pure virtual class which is implemented by FrameView,
18 // RemoteFrameView, and PluginView. 19 // RemoteFrameView, and PluginView.
19 class CORE_EXPORT FrameOrPlugin : public GarbageCollectedMixin { 20 class CORE_EXPORT FrameOrPlugin : public GarbageCollectedMixin {
joelhockey 2017/05/01 23:04:35 Methods SetParent, Parent, SetParentVisible, Frame
20 public: 21 public:
21 virtual ~FrameOrPlugin() {} 22 virtual ~FrameOrPlugin() {}
22 23
24 virtual bool IsFrameView() const { return false; }
25 virtual bool IsPluginView() const { return false; }
26
27 virtual void SetParent(FrameView*) = 0;
28 virtual FrameView* Parent() const = 0;
29 virtual void SetParentVisible(bool) = 0;
23 virtual void SetFrameRect(const IntRect&) = 0; 30 virtual void SetFrameRect(const IntRect&) = 0;
31 virtual void FrameRectsChanged() = 0;
24 virtual const IntRect& FrameRect() const = 0; 32 virtual const IntRect& FrameRect() const = 0;
25 virtual void Paint(GraphicsContext&, const CullRect&) const = 0; 33 virtual void Paint(GraphicsContext&, const CullRect&) const = 0;
26 virtual void Show() = 0; 34 virtual void Show() = 0;
27 virtual void Hide() = 0; 35 virtual void Hide() = 0;
28 virtual void Dispose() = 0; 36 virtual void Dispose() = 0;
29 }; 37 };
30 38
31 } // namespace blink 39 } // namespace blink
32 #endif // FrameOrPlugin_h 40 #endif // FrameOrPlugin_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/FrameView.h » ('j') | third_party/WebKit/Source/core/frame/FrameView.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698