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 namespace blink { | 8 namespace blink { |
9 | 9 |
10 class FrameView; | 10 class FrameView; |
11 class GraphicsContext; | 11 class GraphicsContext; |
12 class IntRect; | 12 class IntRect; |
13 class Scrollbar; | 13 class Scrollbar; |
14 | 14 |
15 class FramePainter { | 15 class FramePainter { |
16 public: | 16 public: |
17 FramePainter(FrameView& frameView) : m_frameView(frameView) { } | 17 FramePainter(FrameView& frameView) : m_frameView(frameView) { } |
18 | 18 |
19 void paint(GraphicsContext*, const IntRect&); | 19 void paint(GraphicsContext*, const IntRect&); |
20 void paintScrollbars(GraphicsContext*, const IntRect&); | 20 void paintScrollbars(GraphicsContext*, const IntRect&); |
21 void paintContents(GraphicsContext*, const IntRect& damageRect); | 21 void paintContents(GraphicsContext*, const IntRect& damageRect); |
22 void paintScrollCorner(GraphicsContext*, const IntRect& cornerRect); | 22 void paintScrollCorner(GraphicsContext*, const IntRect& cornerRect); |
23 | 23 |
24 private: | 24 private: |
25 void paintScrollbar(GraphicsContext*, Scrollbar*, const IntRect&); | 25 void paintScrollbar(GraphicsContext*, Scrollbar*, const IntRect&); |
26 void paintOverhangAreas(GraphicsContext*, const IntRect& horizontalOverhangA
rea, const IntRect& verticalOverhangArea, const IntRect& dirtyRect); | |
27 void calculateAndPaintOverhangAreas(GraphicsContext*, const IntRect& dirtyRe
ct); | |
28 void paintOverhangAreasInternal(GraphicsContext*, const IntRect& horizontalO
verhangArea, const IntRect& verticalOverhangArea, const IntRect& dirtyRect); | |
29 | 26 |
30 FrameView& m_frameView; | 27 FrameView& m_frameView; |
31 static bool s_inPaintContents; | 28 static bool s_inPaintContents; |
32 }; | 29 }; |
33 | 30 |
34 } // namespace blink | 31 } // namespace blink |
35 | 32 |
36 #endif // FramePainter_h | 33 #endif // FramePainter_h |
OLD | NEW |