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