OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CC_INPUT_PINCH_ZOOM_SCROLLBAR_PAINTER_H_ | 5 #ifndef CC_INPUT_PINCH_ZOOM_SCROLLBAR_PAINTER_H_ |
6 #define CC_INPUT_PINCH_ZOOM_SCROLLBAR_PAINTER_H_ | 6 #define CC_INPUT_PINCH_ZOOM_SCROLLBAR_PAINTER_H_ |
7 | 7 |
| 8 #include "base/basictypes.h" |
8 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
9 #include "cc/layers/scrollbar_theme_painter.h" | 10 #include "cc/layers/scrollbar_theme_painter.h" |
10 | 11 |
11 namespace cc { | 12 namespace cc { |
12 | 13 |
13 class PinchZoomScrollbarPainter : public ScrollbarThemePainter { | 14 class PinchZoomScrollbarPainter : public ScrollbarThemePainter { |
14 public: | 15 public: |
15 PinchZoomScrollbarPainter() {} | 16 PinchZoomScrollbarPainter() {} |
16 virtual ~PinchZoomScrollbarPainter(); | 17 virtual ~PinchZoomScrollbarPainter(); |
17 | 18 |
18 virtual void PaintScrollbarBackground(SkCanvas* canvas, | 19 virtual void PaintScrollbarBackground(SkCanvas* canvas, |
19 gfx::Rect rect) OVERRIDE; | 20 gfx::Rect rect) OVERRIDE; |
20 virtual void PaintTrackBackground(SkCanvas* canvas, gfx::Rect rect) OVERRIDE; | 21 virtual void PaintTrackBackground(SkCanvas* canvas, gfx::Rect rect) OVERRIDE; |
21 virtual void PaintBackTrackPart(SkCanvas* canvas, gfx::Rect rect) OVERRIDE; | 22 virtual void PaintBackTrackPart(SkCanvas* canvas, gfx::Rect rect) OVERRIDE; |
22 virtual void PaintForwardTrackPart(SkCanvas* canvas, gfx::Rect rect) OVERRIDE; | 23 virtual void PaintForwardTrackPart(SkCanvas* canvas, gfx::Rect rect) OVERRIDE; |
23 virtual void PaintBackButtonStart(SkCanvas* canvas, gfx::Rect rect) OVERRIDE; | 24 virtual void PaintBackButtonStart(SkCanvas* canvas, gfx::Rect rect) OVERRIDE; |
24 virtual void PaintBackButtonEnd(SkCanvas* canvas, gfx::Rect rect) OVERRIDE; | 25 virtual void PaintBackButtonEnd(SkCanvas* canvas, gfx::Rect rect) OVERRIDE; |
25 virtual void PaintForwardButtonStart(SkCanvas* canvas, | 26 virtual void PaintForwardButtonStart(SkCanvas* canvas, |
26 gfx::Rect rect) OVERRIDE; | 27 gfx::Rect rect) OVERRIDE; |
27 virtual void PaintForwardButtonEnd(SkCanvas* canvas, gfx::Rect rect) OVERRIDE; | 28 virtual void PaintForwardButtonEnd(SkCanvas* canvas, gfx::Rect rect) OVERRIDE; |
28 virtual void PaintTickmarks(SkCanvas* canvas, gfx::Rect rect) OVERRIDE; | 29 virtual void PaintTickmarks(SkCanvas* canvas, gfx::Rect rect) OVERRIDE; |
29 virtual void PaintThumb(SkCanvas* canvas, gfx::Rect rect) OVERRIDE; | 30 virtual void PaintThumb(SkCanvas* canvas, gfx::Rect rect) OVERRIDE; |
| 31 |
| 32 private: |
| 33 DISALLOW_COPY_AND_ASSIGN(PinchZoomScrollbarPainter); |
30 }; | 34 }; |
31 | 35 |
32 } // namespace cc | 36 } // namespace cc |
33 | 37 |
34 #endif // CC_INPUT_PINCH_ZOOM_SCROLLBAR_PAINTER_H_ | 38 #endif // CC_INPUT_PINCH_ZOOM_SCROLLBAR_PAINTER_H_ |
OLD | NEW |