| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef FrameOrPlugin_h |
| 6 #define FrameOrPlugin_h |
| 7 |
| 8 #include "core/CoreExport.h" |
| 9 #include "platform/heap/Handle.h" |
| 10 |
| 11 namespace blink { |
| 12 |
| 13 class CullRect; |
| 14 class GraphicsContext; |
| 15 class IntRect; |
| 16 |
| 17 // FrameOrPlugin is a pure virtual class which is implemented by FrameView, |
| 18 // RemoteFrameView, and PluginView. |
| 19 class CORE_EXPORT FrameOrPlugin : public GarbageCollectedMixin { |
| 20 public: |
| 21 virtual ~FrameOrPlugin() {} |
| 22 |
| 23 virtual void SetFrameRect(const IntRect&) = 0; |
| 24 virtual const IntRect& FrameRect() const = 0; |
| 25 virtual void Paint(GraphicsContext&, const CullRect&) const = 0; |
| 26 virtual void Show() = 0; |
| 27 virtual void Hide() = 0; |
| 28 virtual void Dispose() = 0; |
| 29 }; |
| 30 |
| 31 } // namespace blink |
| 32 #endif // FrameOrPlugin_h |
| OLD | NEW |