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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 PreservesAxisAlignment() const override; |
198 bool IsTranslation() const override; | 198 bool IsTranslation() const override; |
| 199 bool AnimationStartScale(bool forward_direction, |
| 200 float* start_scale) const override; |
199 bool MaximumTargetScale(bool forward_direction, | 201 bool MaximumTargetScale(bool forward_direction, |
200 float* max_scale) const override; | 202 float* max_scale) const override; |
201 | 203 |
202 private: | 204 private: |
203 KeyframedTransformAnimationCurve(); | 205 KeyframedTransformAnimationCurve(); |
204 | 206 |
205 // Always sorted in order of increasing time. No two keyframes have the | 207 // Always sorted in order of increasing time. No two keyframes have the |
206 // same time. | 208 // same time. |
207 ScopedPtrVector<TransformKeyframe> keyframes_; | 209 ScopedPtrVector<TransformKeyframe> keyframes_; |
208 scoped_ptr<TimingFunction> timing_function_; | 210 scoped_ptr<TimingFunction> timing_function_; |
(...skipping 29 matching lines...) Expand all Loading... |
238 // same time. | 240 // same time. |
239 ScopedPtrVector<FilterKeyframe> keyframes_; | 241 ScopedPtrVector<FilterKeyframe> keyframes_; |
240 scoped_ptr<TimingFunction> timing_function_; | 242 scoped_ptr<TimingFunction> timing_function_; |
241 | 243 |
242 DISALLOW_COPY_AND_ASSIGN(KeyframedFilterAnimationCurve); | 244 DISALLOW_COPY_AND_ASSIGN(KeyframedFilterAnimationCurve); |
243 }; | 245 }; |
244 | 246 |
245 } // namespace cc | 247 } // namespace cc |
246 | 248 |
247 #endif // CC_ANIMATION_KEYFRAMED_ANIMATION_CURVE_H_ | 249 #endif // CC_ANIMATION_KEYFRAMED_ANIMATION_CURVE_H_ |
OLD | NEW |