OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WebTransformAnimationCurveImpl_h | 5 #ifndef WebTransformAnimationCurveImpl_h |
6 #define WebTransformAnimationCurveImpl_h | 6 #define WebTransformAnimationCurveImpl_h |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "third_party/WebKit/Source/Platform/chromium/public/WebTransformAnimati
onCurve.h" | 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebTransformAnimati
onCurve.h" |
10 #include "webkit/compositor_bindings/webkit_compositor_bindings_export.h" | 10 #include "webkit/compositor_bindings/webkit_compositor_bindings_export.h" |
11 | 11 |
12 namespace cc { | 12 namespace cc { |
13 class AnimationCurve; | 13 class AnimationCurve; |
14 class KeyframedTransformAnimationCurve; | 14 class KeyframedTransformAnimationCurve; |
15 } | 15 } |
16 | 16 |
17 namespace WebKit { | 17 namespace WebKit { |
18 | 18 |
19 class WebTransformKeyframe; | 19 class WebTransformKeyframe; |
| 20 class WebTransformationMatrix; |
20 | 21 |
21 class WebTransformAnimationCurveImpl : public WebTransformAnimationCurve { | 22 class WebTransformAnimationCurveImpl : public WebTransformAnimationCurve { |
22 public: | 23 public: |
23 WEBKIT_COMPOSITOR_BINDINGS_EXPORT WebTransformAnimationCurveImpl(); | 24 WEBKIT_COMPOSITOR_BINDINGS_EXPORT WebTransformAnimationCurveImpl(); |
24 virtual ~WebTransformAnimationCurveImpl(); | 25 virtual ~WebTransformAnimationCurveImpl(); |
25 | 26 |
26 // WebAnimationCurve implementation. | 27 // WebAnimationCurve implementation. |
27 virtual AnimationCurveType type() const; | 28 virtual AnimationCurveType type() const; |
28 | 29 |
29 // WebTransformAnimationCurve implementation. | 30 // WebTransformAnimationCurve implementation. |
30 virtual void add(const WebTransformKeyframe&); | 31 virtual void add(const WebTransformKeyframe&); |
31 virtual void add(const WebTransformKeyframe&, TimingFunctionType); | 32 virtual void add(const WebTransformKeyframe&, TimingFunctionType); |
32 virtual void add(const WebTransformKeyframe&, | 33 virtual void add(const WebTransformKeyframe&, |
33 double x1, | 34 double x1, |
34 double y1, | 35 double y1, |
35 double x2, | 36 double x2, |
36 double y2); | 37 double y2); |
37 | 38 |
38 virtual WebTransformationMatrix getValue(double time) const; | 39 virtual WebTransformationMatrix getValue(double time) const; |
39 | 40 |
40 scoped_ptr<cc::AnimationCurve> cloneToAnimationCurve() const; | 41 scoped_ptr<cc::AnimationCurve> cloneToAnimationCurve() const; |
41 | 42 |
42 private: | 43 private: |
43 scoped_ptr<cc::KeyframedTransformAnimationCurve> curve_; | 44 scoped_ptr<cc::KeyframedTransformAnimationCurve> curve_; |
44 }; | 45 }; |
45 | 46 |
46 } | 47 } |
47 | 48 |
48 #endif // WebTransformAnimationCurveImpl_h | 49 #endif // WebTransformAnimationCurveImpl_h |
OLD | NEW |