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

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

Issue 776943003: Factor painting code from RenderLayerScrollableArea into ScrollableAreaPainter (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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/paint/PartPainter.cpp ('k') | Source/core/paint/ScrollableAreaPainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/ScrollableAreaPainter.h
diff --git a/Source/core/paint/ScrollableAreaPainter.h b/Source/core/paint/ScrollableAreaPainter.h
new file mode 100644
index 0000000000000000000000000000000000000000..bb6aa474b78b5db0ef091fcdcc68a29770f8711c
--- /dev/null
+++ b/Source/core/paint/ScrollableAreaPainter.h
@@ -0,0 +1,32 @@
+// 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 ScrollableAreaPainter_h
+#define ScrollableAreaPainter_h
+
+namespace blink {
+
+class GraphicsContext;
+class IntPoint;
+class IntRect;
+class RenderLayerScrollableArea;
+
+class ScrollableAreaPainter {
+public:
+ ScrollableAreaPainter(RenderLayerScrollableArea& renderLayerScrollableArea) : m_renderLayerScrollableArea(renderLayerScrollableArea) { }
+
+ void paintResizer(GraphicsContext*, const IntPoint& paintOffset, const IntRect& damageRect);
+ void paintOverflowControls(GraphicsContext*, const IntPoint& paintOffset, const IntRect& damageRect, bool paintingOverlayControls);
+ void paintScrollCorner(GraphicsContext*, const IntPoint&, const IntRect& damageRect);
+
+private:
+ void drawPlatformResizerImage(GraphicsContext*, IntRect resizerCornerRect);
+ bool overflowControlsIntersectRect(const IntRect& localRect) const;
+
+ RenderLayerScrollableArea& m_renderLayerScrollableArea;
+};
+
+} // namespace blink
+
+#endif // ScrollableAreaPainter_h
« no previous file with comments | « Source/core/paint/PartPainter.cpp ('k') | Source/core/paint/ScrollableAreaPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698