| 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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 } | 229 } |
| 230 | 230 |
| 231 bool FakeLayerAnimationValueObserver::IsActive() const { | 231 bool FakeLayerAnimationValueObserver::IsActive() const { |
| 232 return true; | 232 return true; |
| 233 } | 233 } |
| 234 | 234 |
| 235 bool FakeInactiveLayerAnimationValueObserver::IsActive() const { | 235 bool FakeInactiveLayerAnimationValueObserver::IsActive() const { |
| 236 return false; | 236 return false; |
| 237 } | 237 } |
| 238 | 238 |
| 239 gfx::Vector2dF FakeLayerAnimationValueProvider::ScrollOffsetForAnimation() | 239 gfx::ScrollOffset FakeLayerAnimationValueProvider::ScrollOffsetForAnimation() |
| 240 const { | 240 const { |
| 241 return scroll_offset_; | 241 return scroll_offset_; |
| 242 } | 242 } |
| 243 | 243 |
| 244 scoped_ptr<AnimationCurve> FakeFloatTransition::Clone() const { | 244 scoped_ptr<AnimationCurve> FakeFloatTransition::Clone() const { |
| 245 return make_scoped_ptr(new FakeFloatTransition(*this)) | 245 return make_scoped_ptr(new FakeFloatTransition(*this)) |
| 246 .PassAs<AnimationCurve>(); | 246 .PassAs<AnimationCurve>(); |
| 247 } | 247 } |
| 248 | 248 |
| 249 int AddOpacityTransitionToController(LayerAnimationController* controller, | 249 int AddOpacityTransitionToController(LayerAnimationController* controller, |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 double duration, | 345 double duration, |
| 346 float start_brightness, | 346 float start_brightness, |
| 347 float end_brightness) { | 347 float end_brightness) { |
| 348 return AddAnimatedFilter(layer->layer_animation_controller(), | 348 return AddAnimatedFilter(layer->layer_animation_controller(), |
| 349 duration, | 349 duration, |
| 350 start_brightness, | 350 start_brightness, |
| 351 end_brightness); | 351 end_brightness); |
| 352 } | 352 } |
| 353 | 353 |
| 354 } // namespace cc | 354 } // namespace cc |
| OLD | NEW |