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_SCROLLBAR_ANIMATION_CONTROLLER_H_ | 5 #ifndef CC_SCROLLBAR_ANIMATION_CONTROLLER_H_ |
6 #define CC_SCROLLBAR_ANIMATION_CONTROLLER_H_ | 6 #define CC_SCROLLBAR_ANIMATION_CONTROLLER_H_ |
7 | 7 |
8 #include "base/time.h" | 8 #include "base/time.h" |
9 #include "cc/cc_export.h" | 9 #include "cc/base/cc_export.h" |
10 #include "ui/gfx/vector2d_f.h" | 10 #include "ui/gfx/vector2d_f.h" |
11 | 11 |
12 namespace cc { | 12 namespace cc { |
13 | 13 |
14 // This abstract class represents the compositor-side analogy of ScrollbarAnimat
or. | 14 // This abstract class represents the compositor-side analogy of ScrollbarAnimat
or. |
15 // Individual platforms should subclass it to provide specialized implementation
. | 15 // Individual platforms should subclass it to provide specialized implementation
. |
16 class CC_EXPORT ScrollbarAnimationController { | 16 class CC_EXPORT ScrollbarAnimationController { |
17 public: | 17 public: |
18 virtual ~ScrollbarAnimationController() {} | 18 virtual ~ScrollbarAnimationController() {} |
19 | 19 |
20 virtual bool animate(base::TimeTicks) = 0; | 20 virtual bool animate(base::TimeTicks) = 0; |
21 virtual void didPinchGestureUpdate(base::TimeTicks) = 0; | 21 virtual void didPinchGestureUpdate(base::TimeTicks) = 0; |
22 virtual void didPinchGestureEnd(base::TimeTicks) = 0; | 22 virtual void didPinchGestureEnd(base::TimeTicks) = 0; |
23 virtual void didUpdateScrollOffset(base::TimeTicks) = 0; | 23 virtual void didUpdateScrollOffset(base::TimeTicks) = 0; |
24 }; | 24 }; |
25 | 25 |
26 } // namespace cc | 26 } // namespace cc |
27 | 27 |
28 #endif // CC_SCROLLBAR_ANIMATION_CONTROLLER_H_ | 28 #endif // CC_SCROLLBAR_ANIMATION_CONTROLLER_H_ |
OLD | NEW |