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

Side by Side Diff: ash/wm/session_state_controller.h

Issue 11238058: Do not start autoshutdown on lock button press. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 2 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
« no previous file with comments | « ash/wm/power_button_controller.cc ('k') | ash/wm/session_state_controller.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 (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 #ifndef ASH_WM_SESSION_STATE_CONTROLLER_H_ 5 #ifndef ASH_WM_SESSION_STATE_CONTROLLER_H_
6 #define ASH_WM_SESSION_STATE_CONTROLLER_H_ 6 #define ASH_WM_SESSION_STATE_CONTROLLER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/shell_observer.h" 9 #include "ash/shell_observer.h"
10 #include "ash/wm/session_state_animator.h" 10 #include "ash/wm/session_state_animator.h"
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 void SetDelegate(SessionStateControllerDelegate* delegate); 146 void SetDelegate(SessionStateControllerDelegate* delegate);
147 147
148 // Returns true iff when we're in state when user session can be locked. 148 // Returns true iff when we're in state when user session can be locked.
149 virtual bool IsEligibleForLock(); 149 virtual bool IsEligibleForLock();
150 150
151 // Returns true if system is locked. 151 // Returns true if system is locked.
152 virtual bool IsLocked(); 152 virtual bool IsLocked();
153 153
154 // Starts locking (with slow animation) that can be cancelled. 154 // Starts locking (with slow animation) that can be cancelled.
155 // After locking and |kLockToShutdownTimeoutMs| StartShutdownAnimation() 155 // After locking and |kLockToShutdownTimeoutMs| StartShutdownAnimation()
156 // will be called unless CancelShutdown() is called. 156 // will be called unless CancelShutdown() is called, if |shutdown_after_lock|
157 virtual void StartLockAnimation(); 157 // is true.
158 virtual void StartLockAnimation(bool shutdown_after_lock);
158 159
159 // Starts shutting down (with slow animation) that can be cancelled. 160 // Starts shutting down (with slow animation) that can be cancelled.
160 virtual void StartShutdownAnimation(); 161 virtual void StartShutdownAnimation();
161 162
162 // Starts usual lock animation, but locks immediately. 163 // Starts usual lock animation, but locks immediately.
163 // Unlike StartLockAnimation it does no lead to StartShutdownAnimation. 164 // Unlike StartLockAnimation it does no lead to StartShutdownAnimation.
164 virtual void StartLockAnimationAndLockImmediately(); 165 virtual void StartLockAnimationAndLockImmediately();
165 166
166 // Returns true if we have requested system to lock, but haven't received 167 // Returns true if we have requested system to lock, but haven't received
167 // confirmation yet. 168 // confirmation yet.
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 scoped_ptr<internal::SessionStateAnimator> animator_; 269 scoped_ptr<internal::SessionStateAnimator> animator_;
269 270
270 scoped_ptr<SessionStateControllerDelegate> delegate_; 271 scoped_ptr<SessionStateControllerDelegate> delegate_;
271 272
272 DISALLOW_COPY_AND_ASSIGN(SessionStateController); 273 DISALLOW_COPY_AND_ASSIGN(SessionStateController);
273 }; 274 };
274 275
275 } // namespace ash 276 } // namespace ash
276 277
277 #endif // ASH_WM_SESSION_STATE_CONTROLLER_H_ 278 #endif // ASH_WM_SESSION_STATE_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/wm/power_button_controller.cc ('k') | ash/wm/session_state_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698