| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_TEST_FAKE_SCROLLBAR_H_ | 5 #ifndef CC_TEST_FAKE_SCROLLBAR_H_ |
| 6 #define CC_TEST_FAKE_SCROLLBAR_H_ | 6 #define CC_TEST_FAKE_SCROLLBAR_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "cc/input/scrollbar.h" | 10 #include "cc/input/scrollbar.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 ScrollbarOrientation Orientation() const override; | 27 ScrollbarOrientation Orientation() const override; |
| 28 bool IsLeftSideVerticalScrollbar() const override; | 28 bool IsLeftSideVerticalScrollbar() const override; |
| 29 gfx::Point Location() const override; | 29 gfx::Point Location() const override; |
| 30 bool IsOverlay() const override; | 30 bool IsOverlay() const override; |
| 31 bool HasThumb() const override; | 31 bool HasThumb() const override; |
| 32 int ThumbThickness() const override; | 32 int ThumbThickness() const override; |
| 33 int ThumbLength() const override; | 33 int ThumbLength() const override; |
| 34 gfx::Rect TrackRect() const override; | 34 gfx::Rect TrackRect() const override; |
| 35 float ThumbOpacity() const override; | 35 float ThumbOpacity() const override; |
| 36 bool NeedsPaintPart(ScrollbarPart part) const override; | 36 bool NeedsPaintPart(ScrollbarPart part) const override; |
| 37 void PaintPart(SkCanvas* canvas, | 37 void PaintPart(CdlCanvas* canvas, |
| 38 ScrollbarPart part, | 38 ScrollbarPart part, |
| 39 const gfx::Rect& content_rect) override; | 39 const gfx::Rect& content_rect) override; |
| 40 | 40 |
| 41 void set_location(const gfx::Point& location) { location_ = location; } | 41 void set_location(const gfx::Point& location) { location_ = location; } |
| 42 void set_track_rect(const gfx::Rect& track_rect) { track_rect_ = track_rect; } | 42 void set_track_rect(const gfx::Rect& track_rect) { track_rect_ = track_rect; } |
| 43 void set_thumb_thickness(int thumb_thickness) { | 43 void set_thumb_thickness(int thumb_thickness) { |
| 44 thumb_thickness_ = thumb_thickness; | 44 thumb_thickness_ = thumb_thickness; |
| 45 } | 45 } |
| 46 void set_thumb_length(int thumb_length) { thumb_length_ = thumb_length; } | 46 void set_thumb_length(int thumb_length) { thumb_length_ = thumb_length; } |
| 47 void set_has_thumb(bool has_thumb) { has_thumb_ = has_thumb; } | 47 void set_has_thumb(bool has_thumb) { has_thumb_ = has_thumb; } |
| (...skipping 21 matching lines...) Expand all Loading... |
| 69 gfx::Point location_; | 69 gfx::Point location_; |
| 70 gfx::Rect track_rect_; | 70 gfx::Rect track_rect_; |
| 71 SkColor fill_color_; | 71 SkColor fill_color_; |
| 72 | 72 |
| 73 DISALLOW_COPY_AND_ASSIGN(FakeScrollbar); | 73 DISALLOW_COPY_AND_ASSIGN(FakeScrollbar); |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 } // namespace cc | 76 } // namespace cc |
| 77 | 77 |
| 78 #endif // CC_TEST_FAKE_SCROLLBAR_H_ | 78 #endif // CC_TEST_FAKE_SCROLLBAR_H_ |
| OLD | NEW |