| 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" |
| 11 #include "cc/base/cc_export.h" | 11 #include "cc/base/cc_export.h" |
| 12 #include "cc/input/scrollbar_animation_controller.h" | 12 #include "cc/input/scrollbar_animation_controller.h" |
| 13 | 13 |
| 14 namespace cc { | 14 namespace cc { |
| 15 class LayerImpl; | |
| 16 | 15 |
| 17 // Scrollbar animation that partially fades and thins after an idle delay, | 16 // Scrollbar animation that partially fades and thins after an idle delay, |
| 18 // and reacts to mouse movements. | 17 // and reacts to mouse movements. |
| 19 class CC_EXPORT ScrollbarAnimationControllerThinning | 18 class CC_EXPORT ScrollbarAnimationControllerThinning |
| 20 : public ScrollbarAnimationController { | 19 : public ScrollbarAnimationController { |
| 21 public: | 20 public: |
| 22 static std::unique_ptr<ScrollbarAnimationControllerThinning> Create( | 21 static std::unique_ptr<ScrollbarAnimationControllerThinning> Create( |
| 23 int scroll_layer_id, | 22 int scroll_layer_id, |
| 24 ScrollbarAnimationControllerClient* client, | 23 ScrollbarAnimationControllerClient* client, |
| 25 base::TimeDelta delay_before_starting, | 24 base::TimeDelta delay_before_starting, |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 base::TimeDelta thinning_duration_; | 83 base::TimeDelta thinning_duration_; |
| 85 | 84 |
| 86 AnimatingProperty current_animating_property_; | 85 AnimatingProperty current_animating_property_; |
| 87 | 86 |
| 88 DISALLOW_COPY_AND_ASSIGN(ScrollbarAnimationControllerThinning); | 87 DISALLOW_COPY_AND_ASSIGN(ScrollbarAnimationControllerThinning); |
| 89 }; | 88 }; |
| 90 | 89 |
| 91 } // namespace cc | 90 } // namespace cc |
| 92 | 91 |
| 93 #endif // CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_THINNING_H_ | 92 #endif // CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_THINNING_H_ |
| OLD | NEW |