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_ANIMATION_KEYFRAMED_ANIMATION_CURVE_H_ | 5 #ifndef CC_ANIMATION_KEYFRAMED_ANIMATION_CURVE_H_ |
6 #define CC_ANIMATION_KEYFRAMED_ANIMATION_CURVE_H_ | 6 #define CC_ANIMATION_KEYFRAMED_ANIMATION_CURVE_H_ |
7 | 7 |
8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
9 #include "cc/animation/animation_curve.h" | 9 #include "cc/animation/animation_curve.h" |
10 #include "cc/animation/timing_function.h" | 10 #include "cc/animation/timing_function.h" |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 | 187 |
188 // AnimationCurve implementation | 188 // AnimationCurve implementation |
189 base::TimeDelta Duration() const override; | 189 base::TimeDelta Duration() const override; |
190 scoped_ptr<AnimationCurve> Clone() const override; | 190 scoped_ptr<AnimationCurve> Clone() const override; |
191 | 191 |
192 // TransformAnimationCurve implementation | 192 // TransformAnimationCurve implementation |
193 gfx::Transform GetValue(base::TimeDelta t) const override; | 193 gfx::Transform GetValue(base::TimeDelta t) const override; |
194 bool AnimatedBoundsForBox(const gfx::BoxF& box, | 194 bool AnimatedBoundsForBox(const gfx::BoxF& box, |
195 gfx::BoxF* bounds) const override; | 195 gfx::BoxF* bounds) const override; |
196 bool AffectsScale() const override; | 196 bool AffectsScale() const override; |
| 197 bool PreservesAxisAlignment() const override; |
197 bool IsTranslation() const override; | 198 bool IsTranslation() const override; |
198 bool MaximumTargetScale(bool forward_direction, | 199 bool MaximumTargetScale(bool forward_direction, |
199 float* max_scale) const override; | 200 float* max_scale) const override; |
200 | 201 |
201 private: | 202 private: |
202 KeyframedTransformAnimationCurve(); | 203 KeyframedTransformAnimationCurve(); |
203 | 204 |
204 // Always sorted in order of increasing time. No two keyframes have the | 205 // Always sorted in order of increasing time. No two keyframes have the |
205 // same time. | 206 // same time. |
206 ScopedPtrVector<TransformKeyframe> keyframes_; | 207 ScopedPtrVector<TransformKeyframe> keyframes_; |
(...skipping 30 matching lines...) Expand all Loading... |
237 // same time. | 238 // same time. |
238 ScopedPtrVector<FilterKeyframe> keyframes_; | 239 ScopedPtrVector<FilterKeyframe> keyframes_; |
239 scoped_ptr<TimingFunction> timing_function_; | 240 scoped_ptr<TimingFunction> timing_function_; |
240 | 241 |
241 DISALLOW_COPY_AND_ASSIGN(KeyframedFilterAnimationCurve); | 242 DISALLOW_COPY_AND_ASSIGN(KeyframedFilterAnimationCurve); |
242 }; | 243 }; |
243 | 244 |
244 } // namespace cc | 245 } // namespace cc |
245 | 246 |
246 #endif // CC_ANIMATION_KEYFRAMED_ANIMATION_CURVE_H_ | 247 #endif // CC_ANIMATION_KEYFRAMED_ANIMATION_CURVE_H_ |
OLD | NEW |