Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(317)

Side by Side Diff: ash/wm/lock_state_controller.cc

Issue 126513004: Rename RootWindowHost to WindowTreeHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/wm/lock_state_controller.h ('k') | ash/wm/system_gesture_event_filter_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ash/wm/lock_state_controller.h ('k') | ash/wm/system_gesture_event_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698