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 WEBKIT_COMPOSITOR_BINDINGS_WEB_TRANSFORM_ANIMATION_CURVE_IMPL_H_ |
6 #define WebTransformAnimationCurveImpl_h | 6 #define WEBKIT_COMPOSITOR_BINDINGS_WEB_TRANSFORM_ANIMATION_CURVE_IMPL_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 { class WebTransformKeyframe; } |
18 | 18 |
19 class WebTransformKeyframe; | 19 namespace webkit { |
20 | 20 |
21 class WebTransformAnimationCurveImpl : public WebTransformAnimationCurve { | 21 class WebTransformAnimationCurveImpl |
| 22 : public WebKit::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 // WebKit::WebAnimationCurve implementation. |
27 virtual AnimationCurveType type() const; | 28 virtual AnimationCurveType type() const; |
28 | 29 |
29 // WebTransformAnimationCurve implementation. | 30 // WebKit::WebTransformAnimationCurve implementation. |
30 virtual void add(const WebTransformKeyframe&); | 31 virtual void add(const WebKit::WebTransformKeyframe& keyframe); |
31 virtual void add(const WebTransformKeyframe&, TimingFunctionType); | 32 virtual void add(const WebKit::WebTransformKeyframe& keyframe, |
32 virtual void add(const WebTransformKeyframe&, | 33 TimingFunctionType type); |
| 34 virtual void add(const WebKit::WebTransformKeyframe& keyframe, |
33 double x1, | 35 double x1, |
34 double y1, | 36 double y1, |
35 double x2, | 37 double x2, |
36 double y2); | 38 double y2); |
37 | 39 |
38 scoped_ptr<cc::AnimationCurve> cloneToAnimationCurve() const; | 40 scoped_ptr<cc::AnimationCurve> CloneToAnimationCurve() const; |
39 | 41 |
40 private: | 42 private: |
41 scoped_ptr<cc::KeyframedTransformAnimationCurve> curve_; | 43 scoped_ptr<cc::KeyframedTransformAnimationCurve> curve_; |
| 44 |
| 45 DISALLOW_COPY_AND_ASSIGN(WebTransformAnimationCurveImpl); |
42 }; | 46 }; |
43 | 47 |
44 } | 48 } // namespace webkit |
45 | 49 |
46 #endif // WebTransformAnimationCurveImpl_h | 50 #endif // WEBKIT_COMPOSITOR_BINDINGS_WEB_TRANSFORM_ANIMATION_CURVE_IMPL_H_ |
OLD | NEW |