OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef FramePainter_h |
| 6 #define FramePainter_h |
| 7 |
| 8 namespace blink { |
| 9 |
| 10 class FrameView; |
| 11 class GraphicsContext; |
| 12 class IntRect; |
| 13 class Scrollbar; |
| 14 |
| 15 class FramePainter { |
| 16 public: |
| 17 FramePainter(FrameView& frameView) : m_frameView(frameView) { } |
| 18 |
| 19 void paint(GraphicsContext*, const IntRect&); |
| 20 void paintScrollbars(GraphicsContext*, const IntRect&); |
| 21 void paintContents(GraphicsContext*, const IntRect& damageRect); |
| 22 void paintScrollCorner(GraphicsContext*, const IntRect& cornerRect); |
| 23 |
| 24 private: |
| 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 |
| 30 FrameView& m_frameView; |
| 31 static bool s_inPaintContents; |
| 32 }; |
| 33 |
| 34 } // namespace blink |
| 35 |
| 36 #endif // FramePainter_h |
OLD | NEW |