| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "ui/gfx/compositor/layer_animation_element.h" | 5 #include "ui/compositor/layer_animation_element.h" |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 #include "ui/base/animation/tween.h" | 8 #include "ui/base/animation/tween.h" |
| 9 #include "ui/gfx/compositor/layer_animation_delegate.h" | 9 #include "ui/compositor/layer_animation_delegate.h" |
| 10 #include "ui/gfx/compositor/layer_animator.h" | 10 #include "ui/compositor/layer_animator.h" |
| 11 #include "ui/gfx/interpolated_transform.h" | 11 #include "ui/gfx/interpolated_transform.h" |
| 12 | 12 |
| 13 namespace ui { | 13 namespace ui { |
| 14 | 14 |
| 15 namespace { | 15 namespace { |
| 16 | 16 |
| 17 // Pause ----------------------------------------------------------------------- | 17 // Pause ----------------------------------------------------------------------- |
| 18 class Pause : public LayerAnimationElement { | 18 class Pause : public LayerAnimationElement { |
| 19 public: | 19 public: |
| 20 Pause(const AnimatableProperties& properties, base::TimeDelta duration) | 20 Pause(const AnimatableProperties& properties, base::TimeDelta duration) |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 return new VisibilityTransition(visibility, duration); | 313 return new VisibilityTransition(visibility, duration); |
| 314 } | 314 } |
| 315 | 315 |
| 316 // static | 316 // static |
| 317 LayerAnimationElement* LayerAnimationElement::CreatePauseElement( | 317 LayerAnimationElement* LayerAnimationElement::CreatePauseElement( |
| 318 const AnimatableProperties& properties, base::TimeDelta duration) { | 318 const AnimatableProperties& properties, base::TimeDelta duration) { |
| 319 return new Pause(properties, duration); | 319 return new Pause(properties, duration); |
| 320 } | 320 } |
| 321 | 321 |
| 322 } // namespace ui | 322 } // namespace ui |
| OLD | NEW |