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 "cc/animation/animation.h" | |
9 | |
8 namespace cc { | 10 namespace cc { |
9 | 11 |
10 class AnimationDelegate { | 12 class AnimationDelegate { |
11 public: | 13 public: |
12 virtual void NotifyAnimationStarted(double time) = 0; | 14 // TODO(ajuma): Remove wall_clock_time once the legacy implementation of |
13 virtual void NotifyAnimationFinished(double time) = 0; | 15 // CSS animations and transitions in Blink is removed. |
16 virtual void NotifyAnimationStarted( | |
17 double wall_clock_time, | |
18 double monotonic_time, | |
jamesr
2013/12/05 22:01:39
please use base::TimeTicks for monotonic time valu
ajuma
2013/12/06 00:41:34
Done.
| |
19 Animation::TargetProperty target_property) = 0; | |
20 virtual void NotifyAnimationFinished( | |
21 double wall_clock_time, | |
22 double monotonic_time, | |
23 Animation::TargetProperty target_property) = 0; | |
14 | 24 |
15 protected: | 25 protected: |
16 virtual ~AnimationDelegate() {} | 26 virtual ~AnimationDelegate() {} |
17 }; | 27 }; |
18 | 28 |
19 } // namespace cc | 29 } // namespace cc |
20 | 30 |
21 #endif // CC_ANIMATION_ANIMATION_DELEGATE_H_ | 31 #endif // CC_ANIMATION_ANIMATION_DELEGATE_H_ |
OLD | NEW |