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 AnimationDelegate { | 13 class AnimationDelegate { |
14 public: | 14 public: |
15 // TODO(ajuma): Remove wall_clock_time once the legacy implementation of | |
16 // CSS animations and transitions in Blink is removed. | |
17 virtual void NotifyAnimationStarted( | 15 virtual void NotifyAnimationStarted( |
18 double wall_clock_time, | |
19 base::TimeTicks monotonic_time, | 16 base::TimeTicks monotonic_time, |
20 Animation::TargetProperty target_property) = 0; | 17 Animation::TargetProperty target_property) = 0; |
21 virtual void NotifyAnimationFinished( | 18 virtual void NotifyAnimationFinished( |
22 double wall_clock_time, | |
23 base::TimeTicks monotonic_time, | 19 base::TimeTicks monotonic_time, |
24 Animation::TargetProperty target_property) = 0; | 20 Animation::TargetProperty target_property) = 0; |
25 | 21 |
26 protected: | 22 protected: |
27 virtual ~AnimationDelegate() {} | 23 virtual ~AnimationDelegate() {} |
28 }; | 24 }; |
29 | 25 |
30 } // namespace cc | 26 } // namespace cc |
31 | 27 |
32 #endif // CC_ANIMATION_ANIMATION_DELEGATE_H_ | 28 #endif // CC_ANIMATION_ANIMATION_DELEGATE_H_ |
OLD | NEW |