Index: cc/animation/timing_function.h |
diff --git a/cc/animation/timing_function.h b/cc/animation/timing_function.h |
index 647701f30ce596627279804ab0d6a765d04b209a..675eb4f70539390fd3ebed9f15f07073862e037a 100644 |
--- a/cc/animation/timing_function.h |
+++ b/cc/animation/timing_function.h |
@@ -8,6 +8,7 @@ |
#include "cc/animation/animation_curve.h" |
#include "cc/base/cc_export.h" |
#include "ui/gfx/geometry/cubic_bezier.h" |
+#include "ui/gfx/geometry/steps.h" |
namespace cc { |
@@ -51,6 +52,24 @@ class CC_EXPORT CubicBezierTimingFunction : public TimingFunction { |
DISALLOW_ASSIGN(CubicBezierTimingFunction); |
}; |
+class CC_EXPORT StepsTimingFunction : public TimingFunction { |
+ public: |
+ static scoped_ptr<StepsTimingFunction> Create(int steps, bool steps_at_start); |
+ virtual ~StepsTimingFunction(); |
+ |
+ virtual float GetValue(double time) const OVERRIDE; |
+ virtual scoped_ptr<AnimationCurve> Clone() const OVERRIDE; |
+ virtual void Range(float* min, float* max) const OVERRIDE; |
+ |
+ protected: |
+ StepsTimingFunction(int steps, bool steps_at_start); |
+ |
+ gfx::Steps steps_; |
+ |
+ private: |
+ DISALLOW_ASSIGN(StepsTimingFunction); |
+}; |
+ |
class CC_EXPORT EaseTimingFunction { |
public: |
static scoped_ptr<TimingFunction> Create(); |