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 CC_KEYFRAMED_ANIMATION_CURVE_H_ | 5 #ifndef CC_KEYFRAMED_ANIMATION_CURVE_H_ |
6 #define CC_KEYFRAMED_ANIMATION_CURVE_H_ | 6 #define CC_KEYFRAMED_ANIMATION_CURVE_H_ |
7 | 7 |
8 #include "cc/animation_curve.h" | 8 #include "cc/animation_curve.h" |
9 #include "cc/cc_export.h" | 9 #include "cc/cc_export.h" |
10 #include "cc/scoped_ptr_vector.h" | 10 #include "cc/scoped_ptr_vector.h" |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 | 92 |
93 virtual ~KeyframedTransformAnimationCurve(); | 93 virtual ~KeyframedTransformAnimationCurve(); |
94 | 94 |
95 void addKeyframe(scoped_ptr<TransformKeyframe>); | 95 void addKeyframe(scoped_ptr<TransformKeyframe>); |
96 | 96 |
97 // AnimationCurve implementation | 97 // AnimationCurve implementation |
98 virtual double duration() const OVERRIDE; | 98 virtual double duration() const OVERRIDE; |
99 virtual scoped_ptr<AnimationCurve> clone() const OVERRIDE; | 99 virtual scoped_ptr<AnimationCurve> clone() const OVERRIDE; |
100 | 100 |
101 // TransformAnimationCurve implementation | 101 // TransformAnimationCurve implementation |
102 virtual WebKit::WebTransformationMatrix getValue(double t) const OVERRIDE; | 102 virtual gfx::Transform getValue(double t) const OVERRIDE; |
103 | 103 |
104 private: | 104 private: |
105 KeyframedTransformAnimationCurve(); | 105 KeyframedTransformAnimationCurve(); |
106 | 106 |
107 // Always sorted in order of increasing time. No two keyframes have the | 107 // Always sorted in order of increasing time. No two keyframes have the |
108 // same time. | 108 // same time. |
109 ScopedPtrVector<TransformKeyframe> m_keyframes; | 109 ScopedPtrVector<TransformKeyframe> m_keyframes; |
110 | 110 |
111 DISALLOW_COPY_AND_ASSIGN(KeyframedTransformAnimationCurve); | 111 DISALLOW_COPY_AND_ASSIGN(KeyframedTransformAnimationCurve); |
112 }; | 112 }; |
113 | 113 |
114 } // namespace cc | 114 } // namespace cc |
115 | 115 |
116 #endif // CC_KEYFRAMED_ANIMATION_CURVE_H_ | 116 #endif // CC_KEYFRAMED_ANIMATION_CURVE_H_ |
OLD | NEW |