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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/paint/PartPainter.cpp ('k') | Source/core/paint/ScrollableAreaPainter.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 ScrollableAreaPainter_h
6 #define ScrollableAreaPainter_h
7
8 namespace blink {
9
10 class GraphicsContext;
11 class IntPoint;
12 class IntRect;
13 class RenderLayerScrollableArea;
14
15 class ScrollableAreaPainter {
16 public:
17 ScrollableAreaPainter(RenderLayerScrollableArea& renderLayerScrollableArea) : m_renderLayerScrollableArea(renderLayerScrollableArea) { }
18
19 void paintResizer(GraphicsContext*, const IntPoint& paintOffset, const IntRe ct& damageRect);
20 void paintOverflowControls(GraphicsContext*, const IntPoint& paintOffset, co nst IntRect& damageRect, bool paintingOverlayControls);
21 void paintScrollCorner(GraphicsContext*, const IntPoint&, const IntRect& dam ageRect);
22
23 private:
24 void drawPlatformResizerImage(GraphicsContext*, IntRect resizerCornerRect);
25 bool overflowControlsIntersectRect(const IntRect& localRect) const;
26
27 RenderLayerScrollableArea& m_renderLayerScrollableArea;
28 };
29
30 } // namespace blink
31
32 #endif // ScrollableAreaPainter_h
OLDNEW
« 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