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/layer_animation_controller.h" | 10 #include "cc/animation/layer_animation_controller.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 public: | 38 public: |
39 explicit FakeTransformTransition(double duration); | 39 explicit FakeTransformTransition(double duration); |
40 ~FakeTransformTransition() override; | 40 ~FakeTransformTransition() override; |
41 | 41 |
42 base::TimeDelta Duration() const override; | 42 base::TimeDelta Duration() const override; |
43 gfx::Transform GetValue(base::TimeDelta time) const override; | 43 gfx::Transform GetValue(base::TimeDelta time) const override; |
44 bool AnimatedBoundsForBox(const gfx::BoxF& box, | 44 bool AnimatedBoundsForBox(const gfx::BoxF& box, |
45 gfx::BoxF* bounds) const override; | 45 gfx::BoxF* bounds) const override; |
46 bool AffectsScale() const override; | 46 bool AffectsScale() const override; |
47 bool IsTranslation() const override; | 47 bool IsTranslation() const override; |
| 48 bool PreservesAxisAlignment() const override; |
48 bool MaximumTargetScale(bool forward_direction, | 49 bool MaximumTargetScale(bool forward_direction, |
49 float* max_scale) const override; | 50 float* max_scale) const override; |
50 | 51 |
51 scoped_ptr<AnimationCurve> Clone() const override; | 52 scoped_ptr<AnimationCurve> Clone() const override; |
52 | 53 |
53 private: | 54 private: |
54 base::TimeDelta duration_; | 55 base::TimeDelta duration_; |
55 }; | 56 }; |
56 | 57 |
57 class FakeFloatTransition : public FloatAnimationCurve { | 58 class FakeFloatTransition : public FloatAnimationCurve { |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 float end_brightness); | 173 float end_brightness); |
173 | 174 |
174 int AddAnimatedFilterToLayer(LayerImpl* layer, | 175 int AddAnimatedFilterToLayer(LayerImpl* layer, |
175 double duration, | 176 double duration, |
176 float start_brightness, | 177 float start_brightness, |
177 float end_brightness); | 178 float end_brightness); |
178 | 179 |
179 } // namespace cc | 180 } // namespace cc |
180 | 181 |
181 #endif // CC_TEST_ANIMATION_TEST_COMMON_H_ | 182 #endif // CC_TEST_ANIMATION_TEST_COMMON_H_ |
OLD | NEW |