| Index: cc/animation/animation_player.h
|
| diff --git a/cc/animation/animation_player.h b/cc/animation/animation_player.h
|
| index 247b24c3d23c5fcc7ec66bedd5c2c0a70519d0db..6e52fbe354810718d85e421d2236a608a120e35b 100644
|
| --- a/cc/animation/animation_player.h
|
| +++ b/cc/animation/animation_player.h
|
| @@ -13,6 +13,7 @@
|
| #include "base/time/time.h"
|
| #include "cc/animation/animation.h"
|
| #include "cc/animation/animation_curve.h"
|
| +#include "cc/animation/animation_player_observer.h"
|
| #include "cc/animation/element_animations.h"
|
| #include "cc/base/cc_export.h"
|
|
|
| @@ -31,8 +32,7 @@ class ElementAnimations;
|
| // same-property animations.
|
| // Each AnimationPlayer has its copy on the impl thread.
|
| // This is a CC counterpart for blink::AnimationPlayer (in 1:1 relationship).
|
| -class CC_EXPORT AnimationPlayer : public base::RefCounted<AnimationPlayer>,
|
| - public base::LinkNode<AnimationPlayer> {
|
| +class CC_EXPORT AnimationPlayer : public base::RefCounted<AnimationPlayer> {
|
| public:
|
| static scoped_refptr<AnimationPlayer> Create(int id);
|
| scoped_refptr<AnimationPlayer> CreateImplInstance() const;
|
| @@ -75,31 +75,32 @@ class CC_EXPORT AnimationPlayer : public base::RefCounted<AnimationPlayer>,
|
| void PushPropertiesTo(AnimationPlayer* player_impl);
|
|
|
| // AnimationDelegate routing.
|
| - void NotifyAnimationStarted(base::TimeTicks monotonic_time,
|
| - TargetProperty::Type target_property,
|
| - int group);
|
| - void NotifyAnimationFinished(base::TimeTicks monotonic_time,
|
| - TargetProperty::Type target_property,
|
| - int group);
|
| - void NotifyAnimationAborted(base::TimeTicks monotonic_time,
|
| - TargetProperty::Type target_property,
|
| - int group);
|
| - void NotifyAnimationTakeover(base::TimeTicks monotonic_time,
|
| - TargetProperty::Type target_property,
|
| - double animation_start_time,
|
| - std::unique_ptr<AnimationCurve> curve);
|
| + virtual void OnAnimationStarted(base::TimeTicks monotonic_time,
|
| + TargetProperty::Type target_property,
|
| + int group);
|
| + virtual void OnAnimationFinished(base::TimeTicks monotonic_time,
|
| + TargetProperty::Type target_property,
|
| + int group);
|
| + virtual void OnAnimationAborted(base::TimeTicks monotonic_time,
|
| + TargetProperty::Type target_property,
|
| + int group);
|
| + virtual void OnAnimationTakeover(base::TimeTicks monotonic_time,
|
| + TargetProperty::Type target_property,
|
| + double animation_start_time,
|
| + std::unique_ptr<AnimationCurve> curve);
|
|
|
| // Whether this player has animations waiting to get sent to ElementAnimations
|
| bool has_pending_animations_for_testing() const {
|
| return !animations_.empty();
|
| }
|
|
|
| + protected:
|
| + explicit AnimationPlayer(int id);
|
| + virtual ~AnimationPlayer();
|
| +
|
| private:
|
| friend class base::RefCounted<AnimationPlayer>;
|
|
|
| - explicit AnimationPlayer(int id);
|
| - ~AnimationPlayer();
|
| -
|
| void SetNeedsCommit();
|
|
|
| void RegisterPlayer();
|
|
|