blob: be6d80c3a6cf9655a6ffe6df29f98f883b4a09a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
// Copyright 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#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();
// WebAnimationCurve implementation.
virtual AnimationCurveType type() const OVERRIDE;
// WebFloatAnimationCurve implementation.
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 // WebFloatAnimationCurveImpl_h
|