Chromium Code Reviews| 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 #include "cc/animation/animation_curve.h" | |
| 10 | 11 |
| 11 namespace cc { | 12 namespace cc { |
| 12 | 13 |
| 13 class CC_EXPORT AnimationDelegate { | 14 class CC_EXPORT AnimationDelegate { |
| 14 public: | 15 public: |
| 15 virtual void NotifyAnimationStarted(base::TimeTicks monotonic_time, | 16 virtual void NotifyAnimationStarted(base::TimeTicks monotonic_time, |
| 16 TargetProperty::Type target_property, | 17 TargetProperty::Type target_property, |
| 17 int group) = 0; | 18 int group) = 0; |
| 18 virtual void NotifyAnimationFinished(base::TimeTicks monotonic_time, | 19 virtual void NotifyAnimationFinished(base::TimeTicks monotonic_time, |
| 19 TargetProperty::Type target_property, | 20 TargetProperty::Type target_property, |
| 20 int group) = 0; | 21 int group) = 0; |
| 21 | 22 |
| 22 virtual void NotifyAnimationAborted(base::TimeTicks monotonic_time, | 23 virtual void NotifyAnimationAborted(base::TimeTicks monotonic_time, |
| 23 TargetProperty::Type target_property, | 24 TargetProperty::Type target_property, |
| 24 int group) = 0; | 25 int group) = 0; |
| 25 | 26 |
| 27 virtual void NotifyAnimationTakeover(base::TimeTicks monotonic_time, | |
| 28 double animation_start_time, | |
|
ajuma
2016/02/26 23:56:54
This should include a target property (even if we
ymalik
2016/02/29 16:31:09
Totally. Done thanks!
| |
| 29 scoped_ptr<AnimationCurve> curve) = 0; | |
| 30 | |
| 26 protected: | 31 protected: |
| 27 virtual ~AnimationDelegate() {} | 32 virtual ~AnimationDelegate() {} |
| 28 }; | 33 }; |
| 29 | 34 |
| 30 } // namespace cc | 35 } // namespace cc |
| 31 | 36 |
| 32 #endif // CC_ANIMATION_ANIMATION_DELEGATE_H_ | 37 #endif // CC_ANIMATION_ANIMATION_DELEGATE_H_ |
| OLD | NEW |