| 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/heap/Handle.h" | 8 #include "platform/heap/Handle.h" |
| 9 #include "platform/scroll/Scrollbar.h" | 9 #include "platform/scroll/Scrollbar.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 class GraphicsContext; | 13 class GraphicsContext; |
| 14 class IntRect; | 14 class IntRect; |
| 15 class LayoutPoint; | 15 class LayoutPoint; |
| 16 class LayoutRect; | 16 class LayoutRect; |
| 17 class LayoutScrollbar; | 17 class LayoutScrollbar; |
| 18 class LayoutScrollbarPart; | 18 class LayoutScrollbarPart; |
| 19 | 19 |
| 20 class ScrollbarPainter { | 20 class ScrollbarPainter { |
| 21 STACK_ALLOCATED(); | 21 STACK_ALLOCATED(); |
| 22 WTF_MAKE_NONCOPYABLE(ScrollbarPainter); | 22 WTF_MAKE_NONCOPYABLE(ScrollbarPainter); |
| 23 public: | 23 public: |
| 24 explicit ScrollbarPainter(const LayoutScrollbar& layoutScrollbar) : m_layout
Scrollbar(&layoutScrollbar) { } | 24 explicit ScrollbarPainter(const LayoutScrollbar& layoutScrollbar) : m_layout
Scrollbar(&layoutScrollbar) { } |
| 25 | 25 |
| 26 void paintPart(GraphicsContext&, ScrollbarPart, const IntRect&); | 26 void paintPart(GraphicsContext&, ScrollbarPart, const IntRect&); |
| 27 static void paintIntoRect(const LayoutScrollbarPart&, GraphicsContext&, cons
t LayoutPoint& paintOffset, const LayoutRect&); | 27 static void paintIntoRect(const LayoutScrollbarPart&, GraphicsContext&, cons
t LayoutPoint& paintOffset, const LayoutRect&); |
| 28 | 28 |
| 29 private: | 29 private: |
| 30 RawPtrWillBeMember<const LayoutScrollbar> m_layoutScrollbar; | 30 Member<const LayoutScrollbar> m_layoutScrollbar; |
| 31 }; | 31 }; |
| 32 | 32 |
| 33 } // namespace blink | 33 } // namespace blink |
| 34 | 34 |
| 35 #endif // ScrollbarPainter_h | 35 #endif // ScrollbarPainter_h |
| OLD | NEW |