| 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_TEST_ANIMATION_TEST_COMMON_H_ | 5 #ifndef CC_TEST_ANIMATION_TEST_COMMON_H_ |
| 6 #define CC_TEST_ANIMATION_TEST_COMMON_H_ | 6 #define CC_TEST_ANIMATION_TEST_COMMON_H_ |
| 7 | 7 |
| 8 #include "cc/animation/animation.h" | 8 #include "cc/animation/animation.h" |
| 9 #include "cc/animation/animation_curve.h" | 9 #include "cc/animation/animation_curve.h" |
| 10 #include "cc/animation/animation_timeline.h" | 10 #include "cc/animation/animation_timeline.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 private: | 36 private: |
| 37 base::TimeDelta duration_; | 37 base::TimeDelta duration_; |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 class FakeTransformTransition : public TransformAnimationCurve { | 40 class FakeTransformTransition : public TransformAnimationCurve { |
| 41 public: | 41 public: |
| 42 explicit FakeTransformTransition(double duration); | 42 explicit FakeTransformTransition(double duration); |
| 43 ~FakeTransformTransition() override; | 43 ~FakeTransformTransition() override; |
| 44 | 44 |
| 45 base::TimeDelta Duration() const override; | 45 base::TimeDelta Duration() const override; |
| 46 gfx::Transform GetValue(base::TimeDelta time) const override; | 46 TransformOperations GetValue(base::TimeDelta time) const override; |
| 47 bool AnimatedBoundsForBox(const gfx::BoxF& box, | 47 bool AnimatedBoundsForBox(const gfx::BoxF& box, |
| 48 gfx::BoxF* bounds) const override; | 48 gfx::BoxF* bounds) const override; |
| 49 bool IsTranslation() const override; | 49 bool IsTranslation() const override; |
| 50 bool PreservesAxisAlignment() const override; | 50 bool PreservesAxisAlignment() const override; |
| 51 bool AnimationStartScale(bool forward_direction, | 51 bool AnimationStartScale(bool forward_direction, |
| 52 float* start_scale) const override; | 52 float* start_scale) const override; |
| 53 bool MaximumTargetScale(bool forward_direction, | 53 bool MaximumTargetScale(bool forward_direction, |
| 54 float* max_scale) const override; | 54 float* max_scale) const override; |
| 55 | 55 |
| 56 std::unique_ptr<AnimationCurve> Clone() const override; | 56 std::unique_ptr<AnimationCurve> Clone() const override; |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 ElementId element_id, | 150 ElementId element_id, |
| 151 scoped_refptr<AnimationTimeline> timeline, | 151 scoped_refptr<AnimationTimeline> timeline, |
| 152 double duration, | 152 double duration, |
| 153 float start_opacity, | 153 float start_opacity, |
| 154 float end_opacity, | 154 float end_opacity, |
| 155 bool use_timing_function); | 155 bool use_timing_function); |
| 156 | 156 |
| 157 } // namespace cc | 157 } // namespace cc |
| 158 | 158 |
| 159 #endif // CC_TEST_ANIMATION_TEST_COMMON_H_ | 159 #endif // CC_TEST_ANIMATION_TEST_COMMON_H_ |
| OLD | NEW |