| 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 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 ~ScrollbarAnimationControllerThinning() override; | 29 ~ScrollbarAnimationControllerThinning() override; |
| 30 | 30 |
| 31 void set_mouse_move_distance_for_test(float distance) { | 31 void set_mouse_move_distance_for_test(float distance) { |
| 32 mouse_move_distance_to_trigger_animation_ = distance; | 32 mouse_move_distance_to_trigger_animation_ = distance; |
| 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 void DidScrollEnd() override; |
| 38 | 39 |
| 39 void DidMouseDown() override; | 40 void DidMouseDown() override; |
| 40 void DidMouseUp() override; | 41 void DidMouseUp() override; |
| 41 void DidMouseLeave() override; | 42 void DidMouseLeave() override; |
| 42 void DidMouseMoveNear(float distance) override; | 43 void DidMouseMoveNear(float distance) override; |
| 43 bool ScrollbarsHidden() const override; | 44 bool ScrollbarsHidden() const override; |
| 44 | 45 |
| 45 protected: | 46 protected: |
| 46 ScrollbarAnimationControllerThinning( | 47 ScrollbarAnimationControllerThinning( |
| 47 int scroll_layer_id, | 48 int scroll_layer_id, |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 base::TimeDelta thinning_duration_; | 84 base::TimeDelta thinning_duration_; |
| 84 | 85 |
| 85 AnimatingProperty current_animating_property_; | 86 AnimatingProperty current_animating_property_; |
| 86 | 87 |
| 87 DISALLOW_COPY_AND_ASSIGN(ScrollbarAnimationControllerThinning); | 88 DISALLOW_COPY_AND_ASSIGN(ScrollbarAnimationControllerThinning); |
| 88 }; | 89 }; |
| 89 | 90 |
| 90 } // namespace cc | 91 } // namespace cc |
| 91 | 92 |
| 92 #endif // CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_THINNING_H_ | 93 #endif // CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_THINNING_H_ |
| OLD | NEW |