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_ANIMATION_DELEGATE_H_ | 5 #ifndef CC_ANIMATION_ANIMATION_DELEGATE_H_ |
6 #define CC_ANIMATION_ANIMATION_DELEGATE_H_ | 6 #define CC_ANIMATION_ANIMATION_DELEGATE_H_ |
7 | 7 |
8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
9 #include "cc/animation/animation.h" | 9 #include "cc/animation/animation.h" |
10 | 10 |
11 namespace cc { | 11 namespace cc { |
12 | 12 |
13 class CC_EXPORT AnimationDelegate { | 13 class CC_EXPORT AnimationDelegate { |
14 public: | 14 public: |
15 virtual void NotifyAnimationStarted(base::TimeTicks monotonic_time, | 15 virtual void NotifyAnimationStarted( |
16 Animation::TargetProperty target_property, | 16 base::TimeTicks monotonic_time, |
17 int group) = 0; | 17 AnimationTargetProperty::Enum target_property, |
| 18 int group) = 0; |
18 virtual void NotifyAnimationFinished( | 19 virtual void NotifyAnimationFinished( |
19 base::TimeTicks monotonic_time, | 20 base::TimeTicks monotonic_time, |
20 Animation::TargetProperty target_property, | 21 AnimationTargetProperty::Enum target_property, |
21 int group) = 0; | 22 int group) = 0; |
22 | 23 |
23 virtual void NotifyAnimationAborted(base::TimeTicks monotonic_time, | 24 virtual void NotifyAnimationAborted( |
24 Animation::TargetProperty target_property, | 25 base::TimeTicks monotonic_time, |
25 int group) = 0; | 26 AnimationTargetProperty::Enum target_property, |
| 27 int group) = 0; |
26 | 28 |
27 protected: | 29 protected: |
28 virtual ~AnimationDelegate() {} | 30 virtual ~AnimationDelegate() {} |
29 }; | 31 }; |
30 | 32 |
31 } // namespace cc | 33 } // namespace cc |
32 | 34 |
33 #endif // CC_ANIMATION_ANIMATION_DELEGATE_H_ | 35 #endif // CC_ANIMATION_ANIMATION_DELEGATE_H_ |
OLD | NEW |