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_ANIMATION_SCROLLBAR_ANIMATION_CONTROLLER_THINNING_H_ | 5 #ifndef CC_ANIMATION_SCROLLBAR_ANIMATION_CONTROLLER_THINNING_H_ |
6 #define CC_ANIMATION_SCROLLBAR_ANIMATION_CONTROLLER_THINNING_H_ | 6 #define CC_ANIMATION_SCROLLBAR_ANIMATION_CONTROLLER_THINNING_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
9 #include "cc/animation/scrollbar_animation_controller.h" | 10 #include "cc/animation/scrollbar_animation_controller.h" |
10 #include "cc/base/cc_export.h" | 11 #include "cc/base/cc_export.h" |
11 | 12 |
12 namespace cc { | 13 namespace cc { |
13 class LayerImpl; | 14 class LayerImpl; |
14 | 15 |
15 // Scrollbar animation that partially fades and thins after an idle delay, | 16 // Scrollbar animation that partially fades and thins after an idle delay, |
16 // and reacts to mouse movements. | 17 // and reacts to mouse movements. |
17 class CC_EXPORT ScrollbarAnimationControllerThinning | 18 class CC_EXPORT ScrollbarAnimationControllerThinning |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 AnimationChange opacity_change_; | 71 AnimationChange opacity_change_; |
71 // How close should the mouse be to the scrollbar before we thicken it. | 72 // How close should the mouse be to the scrollbar before we thicken it. |
72 float mouse_move_distance_to_trigger_animation_; | 73 float mouse_move_distance_to_trigger_animation_; |
73 | 74 |
74 DISALLOW_COPY_AND_ASSIGN(ScrollbarAnimationControllerThinning); | 75 DISALLOW_COPY_AND_ASSIGN(ScrollbarAnimationControllerThinning); |
75 }; | 76 }; |
76 | 77 |
77 } // namespace cc | 78 } // namespace cc |
78 | 79 |
79 #endif // CC_ANIMATION_SCROLLBAR_ANIMATION_CONTROLLER_THINNING_H_ | 80 #endif // CC_ANIMATION_SCROLLBAR_ANIMATION_CONTROLLER_THINNING_H_ |
OLD | NEW |