OLD | NEW |
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 ScrollbarPainter_h | 5 #ifndef ScrollbarPainter_h |
6 #define ScrollbarPainter_h | 6 #define ScrollbarPainter_h |
7 | 7 |
8 #include "platform/scroll/Scrollbar.h" | 8 #include "platform/scroll/Scrollbar.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 | 11 |
12 class GraphicsContext; | 12 class GraphicsContext; |
13 class IntRect; | 13 class IntRect; |
14 class LayoutPoint; | 14 class LayoutPoint; |
15 class LayoutRect; | 15 class LayoutRect; |
16 class RenderScrollbar; | 16 class LayoutScrollbar; |
17 class RenderScrollbarPart; | 17 class LayoutScrollbarPart; |
18 | 18 |
19 class ScrollbarPainter { | 19 class ScrollbarPainter { |
20 public: | 20 public: |
21 ScrollbarPainter(RenderScrollbar& renderScrollbar) : m_renderScrollbar(rende
rScrollbar) { } | 21 ScrollbarPainter(LayoutScrollbar& renderScrollbar) : m_renderScrollbar(rende
rScrollbar) { } |
22 | 22 |
23 void paintPart(GraphicsContext*, ScrollbarPart, const IntRect&); | 23 void paintPart(GraphicsContext*, ScrollbarPart, const IntRect&); |
24 static void paintIntoRect(RenderScrollbarPart*, GraphicsContext*, const Layo
utPoint& paintOffset, const LayoutRect&); | 24 static void paintIntoRect(LayoutScrollbarPart*, GraphicsContext*, const Layo
utPoint& paintOffset, const LayoutRect&); |
25 | 25 |
26 private: | 26 private: |
27 RenderScrollbar& m_renderScrollbar; | 27 LayoutScrollbar& m_renderScrollbar; |
28 }; | 28 }; |
29 | 29 |
30 } // namespace blink | 30 } // namespace blink |
31 | 31 |
32 #endif // ScrollbarPainter_h | 32 #endif // ScrollbarPainter_h |
OLD | NEW |