Chromium Code Reviews| Index: cc/input/scrollbar_animation_controller.h |
| diff --git a/cc/input/scrollbar_animation_controller.h b/cc/input/scrollbar_animation_controller.h |
| index bb3f810a4c2269d58267730ea97694916de2a899..dd0415671e268c8f9c6ee15edc53dd9c79c5f807 100644 |
| --- a/cc/input/scrollbar_animation_controller.h |
| +++ b/cc/input/scrollbar_animation_controller.h |
| @@ -37,7 +37,7 @@ class CC_EXPORT ScrollbarAnimationController { |
| public: |
| virtual ~ScrollbarAnimationController(); |
| - bool Animate(base::TimeTicks now); |
| + virtual bool Animate(base::TimeTicks now); |
| virtual void DidScrollBegin(); |
| virtual void DidScrollUpdate(bool on_resize); |
| @@ -45,7 +45,7 @@ class CC_EXPORT ScrollbarAnimationController { |
| virtual void DidMouseDown() {} |
| virtual void DidMouseUp() {} |
| virtual void DidMouseLeave() {} |
| - virtual void DidMouseMoveNear(float distance) {} |
| + virtual void DidMouseMoveNear(ScrollbarOrientation, float) {} |
| virtual bool ScrollbarsHidden() const; |
| protected: |
| @@ -59,6 +59,7 @@ class CC_EXPORT ScrollbarAnimationController { |
| void StartAnimation(); |
| void StopAnimation(); |
| + |
|
bokan
2017/01/20 18:57:25
Nit: remove new line
|
| ScrollbarSet Scrollbars() const; |
| ScrollbarAnimationControllerClient* client_; |
| @@ -67,6 +68,8 @@ class CC_EXPORT ScrollbarAnimationController { |
| int scroll_layer_id() const { return scroll_layer_id_; } |
| + bool animating_fade() const { return is_animating_; } |
| + |
| private: |
| // Returns how far through the animation we are as a progress value from |
| // 0 to 1. |