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

Unified Diff: cc/animation_curve.h

Issue 12517003: cc: Chromify the Animation and LayerAnimationController classes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
Index: cc/animation_curve.h
diff --git a/cc/animation_curve.h b/cc/animation_curve.h
index a9419f02a0200d659f4ee1460409b49adc3755e5..f244cf90417de5659d8344825bfd23226d7d3270 100644
--- a/cc/animation_curve.h
+++ b/cc/animation_curve.h
@@ -18,39 +18,39 @@ class TransformOperations;
// An animation curve is a function that returns a value given a time.
// There are currently only two types of curve, float and transform.
class CC_EXPORT AnimationCurve {
-public:
- enum Type { Float, Transform };
+ public:
+ enum CurveType { Float, Transform };
- virtual ~AnimationCurve() { }
+ virtual ~AnimationCurve() {}
- virtual double duration() const = 0;
- virtual Type type() const = 0;
- virtual scoped_ptr<AnimationCurve> clone() const = 0;
+ virtual double Duration() const = 0;
+ virtual CurveType Type() const = 0;
+ virtual scoped_ptr<AnimationCurve> Clone() const = 0;
- const FloatAnimationCurve* toFloatAnimationCurve() const;
- const TransformAnimationCurve* toTransformAnimationCurve() const;
+ const FloatAnimationCurve* ToFloatAnimationCurve() const;
+ const TransformAnimationCurve* ToTransformAnimationCurve() const;
};
class CC_EXPORT FloatAnimationCurve : public AnimationCurve {
-public:
- virtual ~FloatAnimationCurve() { }
+ public:
+ virtual ~FloatAnimationCurve() {}
- virtual float getValue(double t) const = 0;
+ virtual float GetValue(double t) const = 0;
- // Partial Animation implementation.
- virtual Type type() const OVERRIDE;
+ // Partial Animation implementation.
+ virtual CurveType Type() const OVERRIDE;
};
class CC_EXPORT TransformAnimationCurve : public AnimationCurve {
-public:
- virtual ~TransformAnimationCurve() { }
+ public:
+ virtual ~TransformAnimationCurve() {}
- virtual gfx::Transform getValue(double t) const = 0;
+ virtual gfx::Transform GetValue(double t) const = 0;
- // Partial Animation implementation.
- virtual Type type() const OVERRIDE;
+ // Partial Animation implementation.
+ virtual CurveType Type() const OVERRIDE;
};
-} // namespace cc
+} // namespace cc
#endif // CC_ANIMATION_CURVE_H_

Powered by Google App Engine
This is Rietveld 408576698