Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1395)

Unified Diff: Source/core/paint/FramePainter.h

Issue 648423002: Move painting code from FrameView to FramePainter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/frame/FrameView.cpp ('k') | Source/core/paint/FramePainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/core/frame/FrameView.cpp ('k') | Source/core/paint/FramePainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698