OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 FramePainter_h | 5 #ifndef FramePainter_h |
6 #define FramePainter_h | 6 #define FramePainter_h |
7 | 7 |
8 #include "core/paint/PaintPhase.h" | 8 #include "core/paint/PaintPhase.h" |
9 #include "platform/heap/Handle.h" | |
9 | 10 |
10 namespace blink { | 11 namespace blink { |
11 | 12 |
12 class FrameView; | 13 class FrameView; |
13 class GraphicsContext; | 14 class GraphicsContext; |
14 class IntRect; | 15 class IntRect; |
15 class Scrollbar; | 16 class Scrollbar; |
16 | 17 |
17 class FramePainter { | 18 class FramePainter { |
19 STACK_ALLOCATED(); | |
20 WTF_MAKE_NONCOPYABLE(FramePainter); | |
18 public: | 21 public: |
19 FramePainter(FrameView& frameView) : m_frameView(frameView) { } | 22 FramePainter(FrameView& frameView) : m_frameView(&frameView) { } |
haraken
2015/08/12 05:25:54
Add explicit.
Yuta Kitamura
2015/08/12 05:38:27
Done.
| |
20 | 23 |
21 void paint(GraphicsContext*, const GlobalPaintFlags, const IntRect&); | 24 void paint(GraphicsContext*, const GlobalPaintFlags, const IntRect&); |
22 void paintScrollbars(GraphicsContext*, const IntRect&); | 25 void paintScrollbars(GraphicsContext*, const IntRect&); |
23 void paintContents(GraphicsContext*, const GlobalPaintFlags, const IntRect& damageRect); | 26 void paintContents(GraphicsContext*, const GlobalPaintFlags, const IntRect& damageRect); |
24 void paintScrollCorner(GraphicsContext*, const IntRect& cornerRect); | 27 void paintScrollCorner(GraphicsContext*, const IntRect& cornerRect); |
25 | 28 |
26 private: | 29 private: |
27 void paintScrollbar(GraphicsContext*, Scrollbar*, const IntRect&); | 30 void paintScrollbar(GraphicsContext*, Scrollbar*, const IntRect&); |
28 | 31 |
29 FrameView& m_frameView; | 32 RawPtrWillBeMember<FrameView> m_frameView; |
30 static bool s_inPaintContents; | 33 static bool s_inPaintContents; |
31 }; | 34 }; |
32 | 35 |
33 } // namespace blink | 36 } // namespace blink |
34 | 37 |
35 #endif // FramePainter_h | 38 #endif // FramePainter_h |
OLD | NEW |