| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_H_ | 5 #ifndef CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_H_ |
| 6 #define CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_H_ | 6 #define CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "base/cancelable_callback.h" | 8 #include "base/cancelable_callback.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 | 116 |
| 117 void StartAnimation(); | 117 void StartAnimation(); |
| 118 void StopAnimation(); | 118 void StopAnimation(); |
| 119 | 119 |
| 120 void Show(); | 120 void Show(); |
| 121 | 121 |
| 122 void PostDelayedAnimation(AnimationChange animation_change); | 122 void PostDelayedAnimation(AnimationChange animation_change); |
| 123 | 123 |
| 124 bool Captured() const; | 124 bool Captured() const; |
| 125 | 125 |
| 126 void NotifyScrollbarLayersOfOpacityAnimation(float opacity); |
| 126 void ApplyOpacityToScrollbars(float opacity); | 127 void ApplyOpacityToScrollbars(float opacity); |
| 127 | 128 |
| 128 ScrollbarAnimationControllerClient* client_; | 129 ScrollbarAnimationControllerClient* client_; |
| 129 | 130 |
| 130 base::TimeTicks last_awaken_time_; | 131 base::TimeTicks last_awaken_time_; |
| 131 | 132 |
| 132 base::TimeDelta fade_delay_; | 133 base::TimeDelta fade_delay_; |
| 133 | 134 |
| 134 base::TimeDelta fade_duration_; | 135 base::TimeDelta fade_duration_; |
| 135 | 136 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 153 vertical_controller_; | 154 vertical_controller_; |
| 154 std::unique_ptr<SingleScrollbarAnimationControllerThinning> | 155 std::unique_ptr<SingleScrollbarAnimationControllerThinning> |
| 155 horizontal_controller_; | 156 horizontal_controller_; |
| 156 | 157 |
| 157 base::WeakPtrFactory<ScrollbarAnimationController> weak_factory_; | 158 base::WeakPtrFactory<ScrollbarAnimationController> weak_factory_; |
| 158 }; | 159 }; |
| 159 | 160 |
| 160 } // namespace cc | 161 } // namespace cc |
| 161 | 162 |
| 162 #endif // CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_H_ | 163 #endif // CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_H_ |
| OLD | NEW |