| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 double scaled_duration() const { return scaled_duration_; } | 230 double scaled_duration() const { return scaled_duration_; } |
| 231 void set_scaled_duration(double scaled_duration) { | 231 void set_scaled_duration(double scaled_duration) { |
| 232 scaled_duration_ = scaled_duration; | 232 scaled_duration_ = scaled_duration; |
| 233 } | 233 } |
| 234 | 234 |
| 235 // AnimationCurve implementation | 235 // AnimationCurve implementation |
| 236 base::TimeDelta Duration() const override; | 236 base::TimeDelta Duration() const override; |
| 237 std::unique_ptr<AnimationCurve> Clone() const override; | 237 std::unique_ptr<AnimationCurve> Clone() const override; |
| 238 | 238 |
| 239 // TransformAnimationCurve implementation | 239 // TransformAnimationCurve implementation |
| 240 gfx::Transform GetValue(base::TimeDelta t) const override; | 240 TransformOperations GetValue(base::TimeDelta t) const override; |
| 241 bool AnimatedBoundsForBox(const gfx::BoxF& box, | 241 bool AnimatedBoundsForBox(const gfx::BoxF& box, |
| 242 gfx::BoxF* bounds) const override; | 242 gfx::BoxF* bounds) const override; |
| 243 bool PreservesAxisAlignment() const override; | 243 bool PreservesAxisAlignment() const override; |
| 244 bool IsTranslation() const override; | 244 bool IsTranslation() const override; |
| 245 bool AnimationStartScale(bool forward_direction, | 245 bool AnimationStartScale(bool forward_direction, |
| 246 float* start_scale) const override; | 246 float* start_scale) const override; |
| 247 bool MaximumTargetScale(bool forward_direction, | 247 bool MaximumTargetScale(bool forward_direction, |
| 248 float* max_scale) const override; | 248 float* max_scale) const override; |
| 249 | 249 |
| 250 private: | 250 private: |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 std::vector<std::unique_ptr<SizeKeyframe>> keyframes_; | 328 std::vector<std::unique_ptr<SizeKeyframe>> keyframes_; |
| 329 std::unique_ptr<TimingFunction> timing_function_; | 329 std::unique_ptr<TimingFunction> timing_function_; |
| 330 double scaled_duration_; | 330 double scaled_duration_; |
| 331 | 331 |
| 332 DISALLOW_COPY_AND_ASSIGN(KeyframedSizeAnimationCurve); | 332 DISALLOW_COPY_AND_ASSIGN(KeyframedSizeAnimationCurve); |
| 333 }; | 333 }; |
| 334 | 334 |
| 335 } // namespace cc | 335 } // namespace cc |
| 336 | 336 |
| 337 #endif // CC_ANIMATION_KEYFRAMED_ANIMATION_CURVE_H_ | 337 #endif // CC_ANIMATION_KEYFRAMED_ANIMATION_CURVE_H_ |
| OLD | NEW |