Index: cc/test/fake_scrollbar.h |
diff --git a/cc/test/fake_scrollbar.h b/cc/test/fake_scrollbar.h |
index 2d14660e975bc712ad84e0e240448010c5d5f92d..ce3baa4a050dcff3a9be2de697a5fd15f4b103b1 100644 |
--- a/cc/test/fake_scrollbar.h |
+++ b/cc/test/fake_scrollbar.h |
@@ -26,6 +26,9 @@ class FakeScrollbar : public Scrollbar { |
int ThumbThickness() const override; |
int ThumbLength() const override; |
gfx::Rect TrackRect() const override; |
+ float ThumbOpacity() const override; |
+ float TrackOpacity() const override; |
+ bool NeedsPaintPart(ScrollbarPart part) const override; |
void PaintPart(SkCanvas* canvas, |
ScrollbarPart part, |
const gfx::Rect& content_rect) override; |
@@ -39,12 +42,25 @@ class FakeScrollbar : public Scrollbar { |
void set_has_thumb(bool has_thumb) { has_thumb_ = has_thumb; } |
SkColor paint_fill_color() const { return SK_ColorBLACK | fill_color_; } |
+ void set_thumb_opacity(float opacity) { thumb_opacity_ = opacity; } |
+ void set_track_opacity(float opacity) { track_opacity_ = opacity; } |
+ void set_needs_paint_thumb(bool needs_paint) { |
+ needs_paint_thumb_ = needs_paint; |
+ } |
+ void set_needs_paint_track(bool needs_paint) { |
+ needs_paint_track_ = needs_paint; |
+ } |
+ |
private: |
bool paint_; |
bool has_thumb_; |
bool is_overlay_; |
int thumb_thickness_; |
int thumb_length_; |
+ float thumb_opacity_; |
+ float track_opacity_; |
+ bool needs_paint_thumb_; |
+ bool needs_paint_track_; |
gfx::Point location_; |
gfx::Rect track_rect_; |
SkColor fill_color_; |