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

Unified Diff: cc/CCLayerAnimationController.h

Issue 11091057: [cc] Use base ptr types for cc's CSS animation classes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ternary => if statement 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 f295d90d39c186d8714e46f1c09a02e00ccf8b24..2fdb91c611aa3f65e1fbe7dbce85e46d9e22e4fa 100644
--- a/cc/CCLayerAnimationController.h
+++ b/cc/CCLayerAnimationController.h
@@ -9,9 +9,8 @@
#include "base/basictypes.h"
#include "base/hash_tables.h"
-#include "cc/own_ptr_vector.h"
-#include <wtf/OwnPtr.h>
-#include <wtf/PassOwnPtr.h>
+#include "base/memory/scoped_ptr.h"
+#include "cc/scoped_ptr_vector.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