| 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 "ash/wm/workspace_controller.h" | 5 #include "ash/wm/workspace_controller.h" |
| 6 | 6 |
| 7 #include "ash/shelf/shelf_layout_manager.h" | 7 #include "ash/shelf/shelf_layout_manager.h" |
| 8 #include "ash/shell.h" | 8 #include "ash/shell.h" |
| 9 #include "ash/shell_window_ids.h" | 9 #include "ash/shell_window_ids.h" |
| 10 #include "ash/wm/base_layout_manager.h" | 10 #include "ash/wm/base_layout_manager.h" |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 | 109 |
| 110 settings.SetPreemptionStrategy(ui::LayerAnimator::ENQUEUE_NEW_ANIMATION); | 110 settings.SetPreemptionStrategy(ui::LayerAnimator::ENQUEUE_NEW_ANIMATION); |
| 111 viewport_->layer()->GetAnimator()->SchedulePauseForProperties( | 111 viewport_->layer()->GetAnimator()->SchedulePauseForProperties( |
| 112 base::TimeDelta::FromMilliseconds(kInitialPauseTimeMS), | 112 base::TimeDelta::FromMilliseconds(kInitialPauseTimeMS), |
| 113 ui::LayerAnimationElement::TRANSFORM, | 113 ui::LayerAnimationElement::TRANSFORM, |
| 114 ui::LayerAnimationElement::OPACITY, | 114 ui::LayerAnimationElement::OPACITY, |
| 115 ui::LayerAnimationElement::BRIGHTNESS, | 115 ui::LayerAnimationElement::BRIGHTNESS, |
| 116 ui::LayerAnimationElement::VISIBILITY, | 116 ui::LayerAnimationElement::VISIBILITY, |
| 117 -1); | 117 -1); |
| 118 | 118 |
| 119 settings.SetTweenType(ui::Tween::EASE_OUT); | 119 settings.SetTweenType(gfx::Tween::EASE_OUT); |
| 120 settings.SetTransitionDuration( | 120 settings.SetTransitionDuration( |
| 121 base::TimeDelta::FromMilliseconds(kCrossFadeDurationMS)); | 121 base::TimeDelta::FromMilliseconds(kCrossFadeDurationMS)); |
| 122 viewport_->layer()->SetTransform(gfx::Transform()); | 122 viewport_->layer()->SetTransform(gfx::Transform()); |
| 123 viewport_->layer()->SetOpacity(1.0f); | 123 viewport_->layer()->SetOpacity(1.0f); |
| 124 } | 124 } |
| 125 } | 125 } |
| 126 | 126 |
| 127 } // namespace internal | 127 } // namespace internal |
| 128 } // namespace ash | 128 } // namespace ash |
| OLD | NEW |