| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 bool currently_scrolling_; | 147 bool currently_scrolling_; |
| 148 bool show_in_fast_scroll_; | 148 bool show_in_fast_scroll_; |
| 149 | 149 |
| 150 base::CancelableClosure delayed_scrollbar_animation_; | 150 base::CancelableClosure delayed_scrollbar_animation_; |
| 151 | 151 |
| 152 float opacity_; | 152 float opacity_; |
| 153 | 153 |
| 154 const bool show_scrollbars_on_scroll_gesture_; | 154 const bool show_scrollbars_on_scroll_gesture_; |
| 155 const bool need_thinning_animation_; | 155 const bool need_thinning_animation_; |
| 156 | 156 |
| 157 bool is_mouse_down_; |
| 158 |
| 157 std::unique_ptr<SingleScrollbarAnimationControllerThinning> | 159 std::unique_ptr<SingleScrollbarAnimationControllerThinning> |
| 158 vertical_controller_; | 160 vertical_controller_; |
| 159 std::unique_ptr<SingleScrollbarAnimationControllerThinning> | 161 std::unique_ptr<SingleScrollbarAnimationControllerThinning> |
| 160 horizontal_controller_; | 162 horizontal_controller_; |
| 161 | 163 |
| 162 base::WeakPtrFactory<ScrollbarAnimationController> weak_factory_; | 164 base::WeakPtrFactory<ScrollbarAnimationController> weak_factory_; |
| 163 }; | 165 }; |
| 164 | 166 |
| 165 } // namespace cc | 167 } // namespace cc |
| 166 | 168 |
| 167 #endif // CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_H_ | 169 #endif // CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_H_ |
| OLD | NEW |