Index: Source/core/paint/FramePainter.h |
diff --git a/Source/core/paint/FramePainter.h b/Source/core/paint/FramePainter.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..be125640d61b3e2b4022553a7db0e7e8d5183f6f |
--- /dev/null |
+++ b/Source/core/paint/FramePainter.h |
@@ -0,0 +1,36 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef FramePainter_h |
+#define FramePainter_h |
+ |
+namespace blink { |
+ |
+class FrameView; |
+class GraphicsContext; |
+class IntRect; |
+class Scrollbar; |
+ |
+class FramePainter { |
+public: |
+ FramePainter(FrameView& frameView) : m_frameView(frameView) { } |
+ |
+ void paint(GraphicsContext*, const IntRect&); |
+ void paintScrollbars(GraphicsContext*, const IntRect&); |
+ void paintContents(GraphicsContext*, const IntRect& damageRect); |
+ void paintScrollCorner(GraphicsContext*, const IntRect& cornerRect); |
+ |
+private: |
+ void paintScrollbar(GraphicsContext*, Scrollbar*, const IntRect&); |
+ void paintOverhangAreas(GraphicsContext*, const IntRect& horizontalOverhangArea, const IntRect& verticalOverhangArea, const IntRect& dirtyRect); |
+ void calculateAndPaintOverhangAreas(GraphicsContext*, const IntRect& dirtyRect); |
+ void paintOverhangAreasInternal(GraphicsContext*, const IntRect& horizontalOverhangArea, const IntRect& verticalOverhangArea, const IntRect& dirtyRect); |
+ |
+ FrameView& m_frameView; |
+ static bool s_inPaintContents; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // FramePainter_h |