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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 | 167 |
168 bool FakeTransformTransition::AnimatedBoundsForBox(const gfx::BoxF& box, | 168 bool FakeTransformTransition::AnimatedBoundsForBox(const gfx::BoxF& box, |
169 gfx::BoxF* bounds) const { | 169 gfx::BoxF* bounds) const { |
170 return false; | 170 return false; |
171 } | 171 } |
172 | 172 |
173 bool FakeTransformTransition::AffectsScale() const { return false; } | 173 bool FakeTransformTransition::AffectsScale() const { return false; } |
174 | 174 |
175 bool FakeTransformTransition::IsTranslation() const { return true; } | 175 bool FakeTransformTransition::IsTranslation() const { return true; } |
176 | 176 |
| 177 bool FakeTransformTransition::PreservesAxisAlignment() const { |
| 178 return true; |
| 179 } |
| 180 |
177 bool FakeTransformTransition::MaximumTargetScale(bool forward_direction, | 181 bool FakeTransformTransition::MaximumTargetScale(bool forward_direction, |
178 float* max_scale) const { | 182 float* max_scale) const { |
179 *max_scale = 1.f; | 183 *max_scale = 1.f; |
180 return true; | 184 return true; |
181 } | 185 } |
182 | 186 |
183 scoped_ptr<AnimationCurve> FakeTransformTransition::Clone() const { | 187 scoped_ptr<AnimationCurve> FakeTransformTransition::Clone() const { |
184 return make_scoped_ptr(new FakeTransformTransition(*this)); | 188 return make_scoped_ptr(new FakeTransformTransition(*this)); |
185 } | 189 } |
186 | 190 |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 double duration, | 350 double duration, |
347 float start_brightness, | 351 float start_brightness, |
348 float end_brightness) { | 352 float end_brightness) { |
349 return AddAnimatedFilter(layer->layer_animation_controller(), | 353 return AddAnimatedFilter(layer->layer_animation_controller(), |
350 duration, | 354 duration, |
351 start_brightness, | 355 start_brightness, |
352 end_brightness); | 356 end_brightness); |
353 } | 357 } |
354 | 358 |
355 } // namespace cc | 359 } // namespace cc |
OLD | NEW |