Chromium Code Reviews| 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 | |
| 10 namespace blink { | |
| 11 | |
| 12 class CullRect; | |
| 13 class GraphicsContext; | |
| 14 class IntRect; | |
| 15 | |
| 16 class CORE_EXPORT FrameOrPlugin { | |
|
dcheng
2017/04/12 00:06:39
My personal feeling about this naming is that it's
joelhockey
2017/04/12 04:33:00
I totally agree that it is better to name based on
haraken
2017/04/12 06:32:31
Add a class-level comment.
joelhockey
2017/04/13 05:42:30
Done
| |
| 17 public: | |
| 18 // FrameOrPlugin(); | |
|
haraken
2017/04/12 06:32:31
Remove this?
joelhockey
2017/04/13 05:42:30
Done
| |
| 19 virtual ~FrameOrPlugin() {} | |
| 20 | |
| 21 virtual void SetFrameRect(const IntRect& frameRect) = 0; | |
| 22 virtual const IntRect& FrameRect() const = 0; | |
| 23 virtual void Paint(GraphicsContext&, const CullRect&) const = 0; | |
| 24 virtual void Show() = 0; | |
| 25 virtual void Hide() = 0; | |
| 26 virtual void Dispose() = 0; | |
| 27 }; | |
| 28 | |
| 29 } // namespace blink | |
| 30 #endif // FrameOrPlugin_h | |
| OLD | NEW |