| 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 23 matching lines...) Expand all Loading... |
| 34 } | 34 } |
| 35 bool mouse_is_over_scrollbar() const { return mouse_is_over_scrollbar_; } | 35 bool mouse_is_over_scrollbar() const { return mouse_is_over_scrollbar_; } |
| 36 bool mouse_is_near_scrollbar() const { return mouse_is_near_scrollbar_; } | 36 bool mouse_is_near_scrollbar() const { return mouse_is_near_scrollbar_; } |
| 37 | 37 |
| 38 void DidScrollUpdate(bool on_resize) override; | 38 void DidScrollUpdate(bool on_resize) override; |
| 39 | 39 |
| 40 void DidMouseDown() override; | 40 void DidMouseDown() override; |
| 41 void DidMouseUp() override; | 41 void DidMouseUp() override; |
| 42 void DidMouseLeave() override; | 42 void DidMouseLeave() override; |
| 43 void DidMouseMoveNear(float distance) override; | 43 void DidMouseMoveNear(float distance) 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, |
| 48 ScrollbarAnimationControllerClient* client, | 49 ScrollbarAnimationControllerClient* client, |
| 49 base::TimeDelta delay_before_starting, | 50 base::TimeDelta delay_before_starting, |
| 50 base::TimeDelta resize_delay_before_starting, | 51 base::TimeDelta resize_delay_before_starting, |
| 51 base::TimeDelta fade_duration, | 52 base::TimeDelta fade_duration, |
| 52 base::TimeDelta thinning_duration); | 53 base::TimeDelta thinning_duration); |
| 53 | 54 |
| (...skipping 29 matching lines...) Expand all 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 |