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

Unified Diff: third_party/WebKit/Source/core/frame/FrameOrPlugin.h

Issue 2814643003: Remove FrameViewBase as base class of PluginView. (Closed)
Patch Set: Address final comments Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/frame/BUILD.gn ('k') | third_party/WebKit/Source/core/frame/FrameView.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/FrameOrPlugin.h
diff --git a/third_party/WebKit/Source/core/frame/FrameOrPlugin.h b/third_party/WebKit/Source/core/frame/FrameOrPlugin.h
new file mode 100644
index 0000000000000000000000000000000000000000..426cd53e600e9365ed8ca252ea9521eedc029ce3
--- /dev/null
+++ b/third_party/WebKit/Source/core/frame/FrameOrPlugin.h
@@ -0,0 +1,32 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef FrameOrPlugin_h
+#define FrameOrPlugin_h
+
+#include "core/CoreExport.h"
+#include "platform/heap/Handle.h"
+
+namespace blink {
+
+class CullRect;
+class GraphicsContext;
+class IntRect;
+
+// FrameOrPlugin is a pure virtual class which is implemented by FrameView,
+// RemoteFrameView, and PluginView.
+class CORE_EXPORT FrameOrPlugin : public GarbageCollectedMixin {
+ public:
+ virtual ~FrameOrPlugin() {}
+
+ virtual void SetFrameRect(const IntRect&) = 0;
+ virtual const IntRect& FrameRect() const = 0;
+ virtual void Paint(GraphicsContext&, const CullRect&) const = 0;
+ virtual void Show() = 0;
+ virtual void Hide() = 0;
+ virtual void Dispose() = 0;
+};
+
+} // namespace blink
+#endif // FrameOrPlugin_h
« no previous file with comments | « third_party/WebKit/Source/core/frame/BUILD.gn ('k') | third_party/WebKit/Source/core/frame/FrameView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698