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_SCROLLBAR_ANIMATION_CONTROLLER_THINNING_H_ | 5 #ifndef CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_THINNING_H_ |
6 #define CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_THINNING_H_ | 6 #define CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_THINNING_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 } | 33 } |
34 bool mouse_is_over_scrollbar() const { return mouse_is_over_scrollbar_; } | 34 bool mouse_is_over_scrollbar() const { return mouse_is_over_scrollbar_; } |
35 bool mouse_is_near_scrollbar() const { return mouse_is_near_scrollbar_; } | 35 bool mouse_is_near_scrollbar() const { return mouse_is_near_scrollbar_; } |
36 | 36 |
37 void DidScrollUpdate(bool on_resize) override; | 37 void DidScrollUpdate(bool on_resize) override; |
38 | 38 |
39 void DidCaptureScrollbarBegin() override; | 39 void DidCaptureScrollbarBegin() override; |
40 void DidCaptureScrollbarEnd() override; | 40 void DidCaptureScrollbarEnd() override; |
41 void DidMouseMoveOffScrollbar() override; | 41 void DidMouseMoveOffScrollbar() override; |
42 void DidMouseMoveNear(float distance) override; | 42 void DidMouseMoveNear(float distance) override; |
| 43 void DidMouseLeave() override; |
43 | 44 |
44 protected: | 45 protected: |
45 ScrollbarAnimationControllerThinning( | 46 ScrollbarAnimationControllerThinning( |
46 int scroll_layer_id, | 47 int scroll_layer_id, |
47 ScrollbarAnimationControllerClient* client, | 48 ScrollbarAnimationControllerClient* client, |
48 base::TimeDelta delay_before_starting, | 49 base::TimeDelta delay_before_starting, |
49 base::TimeDelta resize_delay_before_starting, | 50 base::TimeDelta resize_delay_before_starting, |
50 base::TimeDelta duration); | 51 base::TimeDelta duration); |
51 | 52 |
52 void RunAnimationFrame(float progress) override; | 53 void RunAnimationFrame(float progress) override; |
(...skipping 21 matching lines...) Expand all Loading... |
74 AnimationChange opacity_change_; | 75 AnimationChange opacity_change_; |
75 // How close should the mouse be to the scrollbar before we thicken it. | 76 // How close should the mouse be to the scrollbar before we thicken it. |
76 float mouse_move_distance_to_trigger_animation_; | 77 float mouse_move_distance_to_trigger_animation_; |
77 | 78 |
78 DISALLOW_COPY_AND_ASSIGN(ScrollbarAnimationControllerThinning); | 79 DISALLOW_COPY_AND_ASSIGN(ScrollbarAnimationControllerThinning); |
79 }; | 80 }; |
80 | 81 |
81 } // namespace cc | 82 } // namespace cc |
82 | 83 |
83 #endif // CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_THINNING_H_ | 84 #endif // CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_THINNING_H_ |
OLD | NEW |