#ifndef WebFloatAnimationCurveImpl_h
#define WebFloatAnimationCurveImpl_h
#include <public/WebFloatAnimationCurve.h>
#include <wtf/OwnPtr.h>
#include <wtf/PassOwnPtr.h>
namespace cc {
class CCAnimationCurve;
class CCKeyframedFloatAnimationCurve;
}
namespace WebKit {
class WebFloatAnimationCurveImpl : public WebFloatAnimationCurve {
public:
WebFloatAnimationCurveImpl();
virtual ~WebFloatAnimationCurveImpl();
virtual AnimationCurveType type() const OVERRIDE;
virtual void add(const WebFloatKeyframe&) OVERRIDE;
virtual void add(const WebFloatKeyframe&, TimingFunctionType) OVERRIDE;
virtual void add(const WebFloatKeyframe&, double x1, double y1, double x2, double y2) OVERRIDE;
virtual float getValue(double time) const OVERRIDE;
PassOwnPtr<cc::CCAnimationCurve> cloneToCCAnimationCurve() const;
private:
OwnPtr<cc::CCKeyframedFloatAnimationCurve> m_curve;
};
}
#endif