| 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/session_state_animator.h" | 5 #include "ash/wm/session_state_animator.h" |
| 6 | 6 |
| 7 #include "ash/common/shell_window_ids.h" | 7 #include "ash/common/shell_window_ids.h" |
| 8 #include "ash/shell.h" | 8 #include "ash/shell.h" |
| 9 #include "ash/wm/window_animations.h" | 9 #include "ash/wm/window_animations.h" |
| 10 #include "ui/aura/client/aura_constants.h" | 10 #include "ui/aura/client/aura_constants.h" |
| 11 #include "ui/aura/window_event_dispatcher.h" | 11 #include "ui/aura/window_event_dispatcher.h" |
| 12 #include "ui/compositor/layer_animation_observer.h" | 12 #include "ui/compositor/layer_animation_observer.h" |
| 13 #include "ui/compositor/layer_animation_sequence.h" | 13 #include "ui/compositor/layer_animation_sequence.h" |
| 14 #include "ui/compositor/scoped_layer_animation_settings.h" | 14 #include "ui/compositor/scoped_layer_animation_settings.h" |
| 15 #include "ui/views/widget/widget.h" | 15 #include "ui/views/widget/widget.h" |
| 16 | 16 |
| 17 namespace ash { | 17 namespace ash { |
| 18 | 18 |
| 19 const int SessionStateAnimator::kAllLockScreenContainersMask = | 19 const int SessionStateAnimator::kAllLockScreenContainersMask = |
| 20 SessionStateAnimator::LOCK_SCREEN_BACKGROUND | | 20 SessionStateAnimator::LOCK_SCREEN_WALLPAPER | |
| 21 SessionStateAnimator::LOCK_SCREEN_CONTAINERS | | 21 SessionStateAnimator::LOCK_SCREEN_CONTAINERS | |
| 22 SessionStateAnimator::LOCK_SCREEN_RELATED_CONTAINERS; | 22 SessionStateAnimator::LOCK_SCREEN_RELATED_CONTAINERS; |
| 23 | 23 |
| 24 const int SessionStateAnimator::kAllNonRootContainersMask = | 24 const int SessionStateAnimator::kAllNonRootContainersMask = |
| 25 SessionStateAnimator::kAllLockScreenContainersMask | | 25 SessionStateAnimator::kAllLockScreenContainersMask | |
| 26 SessionStateAnimator::DESKTOP_BACKGROUND | SessionStateAnimator::LAUNCHER | | 26 SessionStateAnimator::WALLPAPER | SessionStateAnimator::LAUNCHER | |
| 27 SessionStateAnimator::NON_LOCK_SCREEN_CONTAINERS; | 27 SessionStateAnimator::NON_LOCK_SCREEN_CONTAINERS; |
| 28 | 28 |
| 29 SessionStateAnimator::AnimationSequence::AnimationSequence( | 29 SessionStateAnimator::AnimationSequence::AnimationSequence( |
| 30 base::Closure callback) | 30 base::Closure callback) |
| 31 : sequence_ended_(false), | 31 : sequence_ended_(false), |
| 32 animation_completed_(false), | 32 animation_completed_(false), |
| 33 invoke_callback_(false), | 33 invoke_callback_(false), |
| 34 callback_(callback) {} | 34 callback_(callback) {} |
| 35 | 35 |
| 36 SessionStateAnimator::AnimationSequence::~AnimationSequence() {} | 36 SessionStateAnimator::AnimationSequence::~AnimationSequence() {} |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 case ANIMATION_SPEED_REVERT_SHUTDOWN: | 86 case ANIMATION_SPEED_REVERT_SHUTDOWN: |
| 87 return base::TimeDelta::FromMilliseconds(500); | 87 return base::TimeDelta::FromMilliseconds(500); |
| 88 } | 88 } |
| 89 // Satisfy compilers that do not understand that we will return from switch | 89 // Satisfy compilers that do not understand that we will return from switch |
| 90 // above anyway. | 90 // above anyway. |
| 91 DCHECK(false) << "Unhandled animation speed " << speed; | 91 DCHECK(false) << "Unhandled animation speed " << speed; |
| 92 return base::TimeDelta(); | 92 return base::TimeDelta(); |
| 93 } | 93 } |
| 94 | 94 |
| 95 } // namespace ash | 95 } // namespace ash |
| OLD | NEW |