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 #include "cc/test/animation_test_common.h" | 5 #include "cc/test/animation_test_common.h" |
6 | 6 |
7 #include "cc/animation/animation_id_provider.h" | 7 #include "cc/animation/animation_id_provider.h" |
8 #include "cc/animation/keyframed_animation_curve.h" | 8 #include "cc/animation/keyframed_animation_curve.h" |
9 #include "cc/animation/layer_animation_controller.h" | 9 #include "cc/animation/layer_animation_controller.h" |
10 #include "cc/animation/transform_operations.h" | 10 #include "cc/animation/transform_operations.h" |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 | 161 |
162 bool FakeTransformTransition::AnimatedBoundsForBox(const gfx::BoxF& box, | 162 bool FakeTransformTransition::AnimatedBoundsForBox(const gfx::BoxF& box, |
163 gfx::BoxF* bounds) const { | 163 gfx::BoxF* bounds) const { |
164 return false; | 164 return false; |
165 } | 165 } |
166 | 166 |
167 bool FakeTransformTransition::AffectsScale() const { return false; } | 167 bool FakeTransformTransition::AffectsScale() const { return false; } |
168 | 168 |
169 bool FakeTransformTransition::IsTranslation() const { return true; } | 169 bool FakeTransformTransition::IsTranslation() const { return true; } |
170 | 170 |
| 171 bool FakeTransformTransition::PreservesAxisAlignment() const { return true; } |
| 172 |
171 bool FakeTransformTransition::MaximumTargetScale(bool forward_direction, | 173 bool FakeTransformTransition::MaximumTargetScale(bool forward_direction, |
172 float* max_scale) const { | 174 float* max_scale) const { |
173 *max_scale = 1.f; | 175 *max_scale = 1.f; |
174 return true; | 176 return true; |
175 } | 177 } |
176 | 178 |
177 scoped_ptr<AnimationCurve> FakeTransformTransition::Clone() const { | 179 scoped_ptr<AnimationCurve> FakeTransformTransition::Clone() const { |
178 return make_scoped_ptr(new FakeTransformTransition(*this)); | 180 return make_scoped_ptr(new FakeTransformTransition(*this)); |
179 } | 181 } |
180 | 182 |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 double duration, | 342 double duration, |
341 float start_brightness, | 343 float start_brightness, |
342 float end_brightness) { | 344 float end_brightness) { |
343 return AddAnimatedFilter(layer->layer_animation_controller(), | 345 return AddAnimatedFilter(layer->layer_animation_controller(), |
344 duration, | 346 duration, |
345 start_brightness, | 347 start_brightness, |
346 end_brightness); | 348 end_brightness); |
347 } | 349 } |
348 | 350 |
349 } // namespace cc | 351 } // namespace cc |
OLD | NEW |