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 "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
8 #include "cc/animation/animation_host.h" | 8 #include "cc/animation/animation_host.h" |
9 #include "cc/animation/animation_id_provider.h" | 9 #include "cc/animation/animation_id_provider.h" |
10 #include "cc/animation/animation_player.h" | 10 #include "cc/animation/animation_player.h" |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 | 165 |
166 gfx::Transform FakeTransformTransition::GetValue(base::TimeDelta time) const { | 166 gfx::Transform FakeTransformTransition::GetValue(base::TimeDelta time) const { |
167 return gfx::Transform(); | 167 return gfx::Transform(); |
168 } | 168 } |
169 | 169 |
170 bool FakeTransformTransition::AnimatedBoundsForBox(const gfx::BoxF& box, | 170 bool FakeTransformTransition::AnimatedBoundsForBox(const gfx::BoxF& box, |
171 gfx::BoxF* bounds) const { | 171 gfx::BoxF* bounds) const { |
172 return false; | 172 return false; |
173 } | 173 } |
174 | 174 |
175 bool FakeTransformTransition::AffectsScale() const { return false; } | |
176 | |
177 bool FakeTransformTransition::IsTranslation() const { return true; } | 175 bool FakeTransformTransition::IsTranslation() const { return true; } |
178 | 176 |
179 bool FakeTransformTransition::PreservesAxisAlignment() const { | 177 bool FakeTransformTransition::PreservesAxisAlignment() const { |
180 return true; | 178 return true; |
181 } | 179 } |
182 | 180 |
183 bool FakeTransformTransition::AnimationStartScale(bool forward_direction, | 181 bool FakeTransformTransition::AnimationStartScale(bool forward_direction, |
184 float* start_scale) const { | 182 float* start_scale) const { |
185 *start_scale = 1.f; | 183 *start_scale = 1.f; |
186 return true; | 184 return true; |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 ElementId element_id, | 422 ElementId element_id, |
425 scoped_refptr<AnimationTimeline> timeline, | 423 scoped_refptr<AnimationTimeline> timeline, |
426 TargetProperty::Type target_property) { | 424 TargetProperty::Type target_property) { |
427 scoped_refptr<ElementAnimations> element_animations = | 425 scoped_refptr<ElementAnimations> element_animations = |
428 timeline->animation_host()->GetElementAnimationsForElementId(element_id); | 426 timeline->animation_host()->GetElementAnimationsForElementId(element_id); |
429 DCHECK(element_animations); | 427 DCHECK(element_animations); |
430 element_animations->AbortAnimations(target_property); | 428 element_animations->AbortAnimations(target_property); |
431 } | 429 } |
432 | 430 |
433 } // namespace cc | 431 } // namespace cc |
OLD | NEW |