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

Unified Diff: cc/CCLayerAnimationController.h

Issue 11085029: [cc] Use base ptr types for cc's CSS animation classes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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/CCKeyframedAnimationCurveTest.cpp ('k') | cc/CCLayerAnimationController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CCLayerAnimationController.h
diff --git a/cc/CCLayerAnimationController.h b/cc/CCLayerAnimationController.h
index 2b6ae64efc3749bd6dd5a8cd9608d2ba0431d118..8b4856ecdd5f776fd81613c234deb97d01484626 100644
--- a/cc/CCLayerAnimationController.h
+++ b/cc/CCLayerAnimationController.h
@@ -8,10 +8,9 @@
#include "CCAnimationEvents.h"
#include "base/basictypes.h"
-#include "cc/own_ptr_vector.h"
+#include "base/memory/scoped_ptr.h"
+#include "cc/scoped_ptr_vector.h"
#include <wtf/HashSet.h>
-#include <wtf/OwnPtr.h>
-#include <wtf/PassOwnPtr.h>
namespace WebKit {
class WebTransformationMatrix;
@@ -36,12 +35,12 @@ public:
class CCLayerAnimationController {
public:
- static PassOwnPtr<CCLayerAnimationController> create(CCLayerAnimationControllerClient*);
+ static scoped_ptr<CCLayerAnimationController> create(CCLayerAnimationControllerClient*);
virtual ~CCLayerAnimationController();
// These methods are virtual for testing.
- virtual void addAnimation(PassOwnPtr<CCActiveAnimation>);
+ virtual void addAnimation(scoped_ptr<CCActiveAnimation>);
virtual void pauseAnimation(int animationId, double timeOffset);
virtual void removeAnimation(int animationId);
virtual void removeAnimation(int animationId, CCActiveAnimation::TargetProperty);
@@ -103,7 +102,7 @@ private:
bool m_forceSync;
CCLayerAnimationControllerClient* m_client;
- OwnPtrVector<CCActiveAnimation> m_activeAnimations;
+ ScopedPtrVector<CCActiveAnimation> m_activeAnimations;
DISALLOW_COPY_AND_ASSIGN(CCLayerAnimationController);
};
« no previous file with comments | « cc/CCKeyframedAnimationCurveTest.cpp ('k') | cc/CCLayerAnimationController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698