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" |
11 #include "cc/base/cc_export.h" | 11 #include "cc/cc_export.h" |
12 #include "cc/input/single_scrollbar_animation_controller_thinning.h" | 12 #include "cc/input/single_scrollbar_animation_controller_thinning.h" |
13 #include "cc/layers/layer_impl.h" | 13 #include "cc/layers/layer_impl.h" |
14 #include "cc/layers/scrollbar_layer_impl_base.h" | 14 #include "cc/layers/scrollbar_layer_impl_base.h" |
15 #include "ui/gfx/geometry/vector2d_f.h" | 15 #include "ui/gfx/geometry/vector2d_f.h" |
16 | 16 |
17 namespace cc { | 17 namespace cc { |
18 | 18 |
19 class CC_EXPORT ScrollbarAnimationControllerClient { | 19 class CC_EXPORT ScrollbarAnimationControllerClient { |
20 public: | 20 public: |
21 virtual void PostDelayedScrollbarAnimationTask(const base::Closure& task, | 21 virtual void PostDelayedScrollbarAnimationTask(const base::Closure& task, |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 vertical_controller_; | 148 vertical_controller_; |
149 std::unique_ptr<SingleScrollbarAnimationControllerThinning> | 149 std::unique_ptr<SingleScrollbarAnimationControllerThinning> |
150 horizontal_controller_; | 150 horizontal_controller_; |
151 | 151 |
152 base::WeakPtrFactory<ScrollbarAnimationController> weak_factory_; | 152 base::WeakPtrFactory<ScrollbarAnimationController> weak_factory_; |
153 }; | 153 }; |
154 | 154 |
155 } // namespace cc | 155 } // namespace cc |
156 | 156 |
157 #endif // CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_H_ | 157 #endif // CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_H_ |
OLD | NEW |