OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CC_BLINK_WEB_ANIMATION_IMPL_H_ | 5 #ifndef CC_BLINK_WEB_ANIMATION_IMPL_H_ |
6 #define CC_BLINK_WEB_ANIMATION_IMPL_H_ | 6 #define CC_BLINK_WEB_ANIMATION_IMPL_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "cc/blink/cc_blink_export.h" | 9 #include "cc/blink/cc_blink_export.h" |
10 #include "third_party/WebKit/public/platform/WebCompositorAnimation.h" | 10 #include "third_party/WebKit/public/platform/WebCompositorAnimation.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 public: | 23 public: |
24 CC_BLINK_EXPORT WebCompositorAnimationImpl( | 24 CC_BLINK_EXPORT WebCompositorAnimationImpl( |
25 const blink::WebCompositorAnimationCurve& curve, | 25 const blink::WebCompositorAnimationCurve& curve, |
26 TargetProperty target, | 26 TargetProperty target, |
27 int animation_id, | 27 int animation_id, |
28 int group_id); | 28 int group_id); |
29 virtual ~WebCompositorAnimationImpl(); | 29 virtual ~WebCompositorAnimationImpl(); |
30 | 30 |
31 // blink::WebCompositorAnimation implementation | 31 // blink::WebCompositorAnimation implementation |
32 virtual int id(); | 32 virtual int id(); |
| 33 virtual int group(); |
33 virtual TargetProperty targetProperty() const; | 34 virtual TargetProperty targetProperty() const; |
34 virtual double iterations() const; | 35 virtual double iterations() const; |
35 virtual void setIterations(double iterations); | 36 virtual void setIterations(double iterations); |
36 virtual double iterationStart() const; | 37 virtual double iterationStart() const; |
37 virtual void setIterationStart(double iteration_start); | 38 virtual void setIterationStart(double iteration_start); |
38 virtual double startTime() const; | 39 virtual double startTime() const; |
39 virtual void setStartTime(double monotonic_time); | 40 virtual void setStartTime(double monotonic_time); |
40 virtual double timeOffset() const; | 41 virtual double timeOffset() const; |
41 virtual void setTimeOffset(double monotonic_time); | 42 virtual void setTimeOffset(double monotonic_time); |
42 virtual Direction direction() const; | 43 virtual Direction direction() const; |
43 virtual void setDirection(Direction); | 44 virtual void setDirection(Direction); |
44 virtual double playbackRate() const; | 45 virtual double playbackRate() const; |
45 virtual void setPlaybackRate(double playback_rate); | 46 virtual void setPlaybackRate(double playback_rate); |
46 virtual FillMode fillMode() const; | 47 virtual FillMode fillMode() const; |
47 virtual void setFillMode(blink::WebCompositorAnimation::FillMode fill_mode); | 48 virtual void setFillMode(blink::WebCompositorAnimation::FillMode fill_mode); |
48 scoped_ptr<cc::Animation> PassAnimation(); | 49 scoped_ptr<cc::Animation> PassAnimation(); |
49 | 50 |
50 private: | 51 private: |
51 scoped_ptr<cc::Animation> animation_; | 52 scoped_ptr<cc::Animation> animation_; |
52 | 53 |
53 DISALLOW_COPY_AND_ASSIGN(WebCompositorAnimationImpl); | 54 DISALLOW_COPY_AND_ASSIGN(WebCompositorAnimationImpl); |
54 }; | 55 }; |
55 | 56 |
56 } // namespace cc_blink | 57 } // namespace cc_blink |
57 | 58 |
58 #endif // CC_BLINK_WEB_ANIMATION_IMPL_H_ | 59 #endif // CC_BLINK_WEB_ANIMATION_IMPL_H_ |
OLD | NEW |