OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/lock_state_controller.h" | 5 #include "ash/wm/lock_state_controller.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "ash/accessibility_delegate.h" | 9 #include "ash/accessibility_delegate.h" |
10 #include "ash/ash_switches.h" | 10 #include "ash/ash_switches.h" |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 void LockStateController::OnLockScreenHide( | 282 void LockStateController::OnLockScreenHide( |
283 base::Callback<void(void)>& callback) { | 283 base::Callback<void(void)>& callback) { |
284 StartUnlockAnimationBeforeUIDestroyed(callback); | 284 StartUnlockAnimationBeforeUIDestroyed(callback); |
285 } | 285 } |
286 | 286 |
287 void LockStateController::SetLockScreenDisplayedCallback( | 287 void LockStateController::SetLockScreenDisplayedCallback( |
288 const base::Closure& callback) { | 288 const base::Closure& callback) { |
289 lock_screen_displayed_callback_ = callback; | 289 lock_screen_displayed_callback_ = callback; |
290 } | 290 } |
291 | 291 |
292 void LockStateController::OnRootWindowHostCloseRequested( | 292 void LockStateController::OnWindowTreeHostCloseRequested( |
293 const aura::RootWindow*) { | 293 const aura::RootWindow*) { |
294 Shell::GetInstance()->delegate()->Exit(); | 294 Shell::GetInstance()->delegate()->Exit(); |
295 } | 295 } |
296 | 296 |
297 void LockStateController::OnLoginStateChanged( | 297 void LockStateController::OnLoginStateChanged( |
298 user::LoginStatus status) { | 298 user::LoginStatus status) { |
299 if (status != user::LOGGED_IN_LOCKED) | 299 if (status != user::LOGGED_IN_LOCKED) |
300 login_status_ = status; | 300 login_status_ = status; |
301 system_is_locked_ = (status == user::LOGGED_IN_LOCKED); | 301 system_is_locked_ = (status == user::LOGGED_IN_LOCKED); |
302 } | 302 } |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
665 unlocked_properties_->background_is_hidden) { | 665 unlocked_properties_->background_is_hidden) { |
666 animator_->StartAnimationWithObserver( | 666 animator_->StartAnimationWithObserver( |
667 internal::SessionStateAnimator::DESKTOP_BACKGROUND, | 667 internal::SessionStateAnimator::DESKTOP_BACKGROUND, |
668 internal::SessionStateAnimator::ANIMATION_FADE_OUT, | 668 internal::SessionStateAnimator::ANIMATION_FADE_OUT, |
669 speed, | 669 speed, |
670 observer); | 670 observer); |
671 } | 671 } |
672 } | 672 } |
673 | 673 |
674 } // namespace ash | 674 } // namespace ash |
OLD | NEW |