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/keyframed_animation_curve.h

Issue 11876016: Define cc::TransformOperations and webkit::WebTransformOperationsImpl (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Put TransformOperation into its own header 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/cc_tests.gyp ('k') | cc/keyframed_animation_curve.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/keyframed_animation_curve.h
diff --git a/cc/keyframed_animation_curve.h b/cc/keyframed_animation_curve.h
index 5685eb87bdc8bfb912831ea6728e9d78395262f8..02136d18d9c9f4a6c36de607a42e0fe80e4c9098 100644
--- a/cc/keyframed_animation_curve.h
+++ b/cc/keyframed_animation_curve.h
@@ -9,6 +9,7 @@
#include "cc/cc_export.h"
#include "cc/scoped_ptr_vector.h"
#include "cc/timing_function.h"
+#include "cc/transform_operations.h"
#include "third_party/WebKit/Source/Platform/chromium/public/WebTransformOperations.h"
namespace cc {
@@ -44,6 +45,22 @@ private:
float m_value;
};
+#if WEB_TRANSFORM_OPERATIONS_IS_VIRTUAL
+class CC_EXPORT TransformKeyframe : public Keyframe {
+public:
+ static scoped_ptr<TransformKeyframe> create(double time, const TransformOperations& value, scoped_ptr<TimingFunction>);
+ virtual ~TransformKeyframe();
+
+ const TransformOperations& value() const;
+
+ scoped_ptr<TransformKeyframe> clone() const;
+
+private:
+ TransformKeyframe(double time, const TransformOperations& value, scoped_ptr<TimingFunction>);
+
+ TransformOperations m_value;
+};
+#else
class CC_EXPORT TransformKeyframe : public Keyframe {
public:
static scoped_ptr<TransformKeyframe> create(double time, const WebKit::WebTransformOperations& value, scoped_ptr<TimingFunction>);
@@ -58,6 +75,7 @@ private:
WebKit::WebTransformOperations m_value;
};
+#endif // WEB_TRANSFORM_OPERATIONS_IS_VIRTUAL
class CC_EXPORT KeyframedFloatAnimationCurve : public FloatAnimationCurve {
public:
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/keyframed_animation_curve.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698