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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/frame/FrameView.cpp ('k') | Source/core/paint/FramePainter.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 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
OLDNEW
« 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