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 WebAnimationImpl_h | 5 #ifndef WebAnimationImpl_h |
6 #define WebAnimationImpl_h | 6 #define WebAnimationImpl_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/WebAnimation.h" | 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebAnimation.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 { class Animation; } | 12 namespace cc { class Animation; } |
13 | 13 |
14 namespace WebKit { | 14 namespace WebKit { |
| 15 class WebAnimationCurve; |
15 | 16 |
16 class WebAnimationImpl : public WebAnimation { | 17 class WebAnimationImpl : public WebAnimation { |
17 public: | 18 public: |
18 WEBKIT_COMPOSITOR_BINDINGS_EXPORT WebAnimationImpl(const WebAnimationCurve&, | 19 WEBKIT_COMPOSITOR_BINDINGS_EXPORT WebAnimationImpl(const WebAnimationCurve&, |
19 TargetProperty, | 20 TargetProperty, |
20 int animation_id, | 21 int animation_id, |
21 int group_id = 0); | 22 int group_id = 0); |
22 virtual ~WebAnimationImpl(); | 23 virtual ~WebAnimationImpl(); |
23 | 24 |
24 // WebAnimation implementation | 25 // WebAnimation implementation |
25 virtual int id() OVERRIDE; | 26 virtual int id(); |
26 virtual TargetProperty targetProperty() const OVERRIDE; | 27 virtual TargetProperty targetProperty() const; |
27 virtual int iterations() const OVERRIDE; | 28 virtual int iterations() const; |
28 virtual void setIterations(int) OVERRIDE; | 29 virtual void setIterations(int); |
29 virtual double startTime() const OVERRIDE; | 30 virtual double startTime() const; |
30 virtual void setStartTime(double monotonic_time) OVERRIDE; | 31 virtual void setStartTime(double monotonic_time); |
31 virtual double timeOffset() const OVERRIDE; | 32 virtual double timeOffset() const; |
32 virtual void setTimeOffset(double monotonic_time) OVERRIDE; | 33 virtual void setTimeOffset(double monotonic_time); |
33 virtual bool alternatesDirection() const OVERRIDE; | 34 virtual bool alternatesDirection() const; |
34 virtual void setAlternatesDirection(bool) OVERRIDE; | 35 virtual void setAlternatesDirection(bool); |
35 | 36 |
36 scoped_ptr<cc::Animation> cloneToAnimation(); | 37 scoped_ptr<cc::Animation> cloneToAnimation(); |
37 | 38 |
38 private: | 39 private: |
39 scoped_ptr<cc::Animation> animation_; | 40 scoped_ptr<cc::Animation> animation_; |
40 }; | 41 }; |
41 | 42 |
42 } | 43 } |
43 | 44 |
44 #endif // WebAnimationImpl_h | 45 #endif // WebAnimationImpl_h |
OLD | NEW |