Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1816)

Unified Diff: cc/layer_animation_controller.h

Issue 11636051: Rename ActiveAnimation -> Animation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layer.cc ('k') | cc/layer_animation_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer_animation_controller.h
diff --git a/cc/layer_animation_controller.h b/cc/layer_animation_controller.h
index aeb5048b9677efa37e2c2bd90fd0cd372827601f..21694427af5a80d4e4ab096a825ec174ab484374 100644
--- a/cc/layer_animation_controller.h
+++ b/cc/layer_animation_controller.h
@@ -37,10 +37,10 @@ public:
int id() const { return m_id; }
// These methods are virtual for testing.
- virtual void addAnimation(scoped_ptr<ActiveAnimation>);
+ virtual void addAnimation(scoped_ptr<Animation>);
virtual void pauseAnimation(int animationId, double timeOffset);
virtual void removeAnimation(int animationId);
- virtual void removeAnimation(int animationId, ActiveAnimation::TargetProperty);
+ virtual void removeAnimation(int animationId, Animation::TargetProperty);
virtual void suspendAnimations(double monotonicTime);
virtual void resumeAnimations(double monotonicTime);
@@ -52,11 +52,11 @@ public:
// Returns the active animation in the given group, animating the given property, if such an
// animation exists.
- ActiveAnimation* getActiveAnimation(int groupId, ActiveAnimation::TargetProperty) const;
+ Animation* getAnimation(int groupId, Animation::TargetProperty) const;
// Returns the active animation animating the given property that is either running, or is
// next to run, if such an animation exists.
- ActiveAnimation* getActiveAnimation(ActiveAnimation::TargetProperty) const;
+ Animation* getAnimation(Animation::TargetProperty) const;
// Returns true if there are any animations that have neither finished nor aborted.
bool hasActiveAnimation() const;
@@ -66,7 +66,7 @@ public:
// Returns true if there is an animation currently animating the given property, or
// if there is an animation scheduled to animate this property in the future.
- bool isAnimatingProperty(ActiveAnimation::TargetProperty) const;
+ bool isAnimatingProperty(Animation::TargetProperty) const;
// This is called in response to an animation being started on the impl thread. This
// function updates the corresponding main thread animation's start time.
@@ -114,7 +114,7 @@ private:
AnimationRegistrar* m_registrar;
int m_id;
- ScopedPtrVector<ActiveAnimation> m_activeAnimations;
+ ScopedPtrVector<Animation> m_activeAnimations;
// This is used to ensure that we don't spam the registrar.
bool m_isActive;
« no previous file with comments | « cc/layer.cc ('k') | cc/layer_animation_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698