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

Side by Side Diff: third_party/WebKit/Source/core/paint/FramePainter.h

Issue 2741223002: Use correct ScrollbarTheme to paintScrollCorner (Closed)
Patch Set: Created 3 years, 9 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef FramePainter_h 5 #ifndef FramePainter_h
6 #define FramePainter_h 6 #define FramePainter_h
7 7
8 #include "core/paint/PaintPhase.h" 8 #include "core/paint/PaintPhase.h"
9 #include "platform/heap/Handle.h" 9 #include "platform/heap/Handle.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class CullRect; 13 class CullRect;
14 class FrameView; 14 class FrameView;
15 class GraphicsContext; 15 class GraphicsContext;
16 class IntRect; 16 class IntRect;
17 class Scrollbar; 17 class Scrollbar;
18 class ScrollbarTheme;
18 19
19 class FramePainter { 20 class FramePainter {
20 STACK_ALLOCATED(); 21 STACK_ALLOCATED();
21 WTF_MAKE_NONCOPYABLE(FramePainter); 22 WTF_MAKE_NONCOPYABLE(FramePainter);
22 23
23 public: 24 public:
24 explicit FramePainter(const FrameView& frameView) : m_frameView(&frameView) {} 25 explicit FramePainter(const FrameView& frameView) : m_frameView(&frameView) {}
25 26
26 void paint(GraphicsContext&, const GlobalPaintFlags, const CullRect&); 27 void paint(GraphicsContext&, const GlobalPaintFlags, const CullRect&);
27 void paintScrollbars(GraphicsContext&, const IntRect&); 28 void paintScrollbars(GraphicsContext&, const IntRect&);
28 void paintContents(GraphicsContext&, const GlobalPaintFlags, const IntRect&); 29 void paintContents(GraphicsContext&, const GlobalPaintFlags, const IntRect&);
29 void paintScrollCorner(GraphicsContext&, const IntRect& cornerRect); 30 void paintScrollCorner(GraphicsContext&,
31 ScrollbarTheme&,
32 const IntRect& cornerRect);
30 33
31 private: 34 private:
32 void paintScrollbar(GraphicsContext&, Scrollbar&, const IntRect&); 35 void paintScrollbar(GraphicsContext&, Scrollbar&, const IntRect&);
33 36
34 const FrameView& frameView(); 37 const FrameView& frameView();
35 38
36 Member<const FrameView> m_frameView; 39 Member<const FrameView> m_frameView;
37 static bool s_inPaintContents; 40 static bool s_inPaintContents;
38 }; 41 };
39 42
40 } // namespace blink 43 } // namespace blink
41 44
42 #endif // FramePainter_h 45 #endif // FramePainter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698