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

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

Issue 326813004: Added quick lock mechanism while in Touchview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed whitespace nit. Created 6 years, 3 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
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 #ifndef ASH_WM_LOCK_STATE_CONTROLLER_H_ 5 #ifndef ASH_WM_LOCK_STATE_CONTROLLER_H_
6 #define ASH_WM_LOCK_STATE_CONTROLLER_H_ 6 #define ASH_WM_LOCK_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/lock_state_observer.h" 10 #include "ash/wm/lock_state_observer.h"
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 CancelShutdownAnimation() is called, if 156 // will be called unless CancelShutdownAnimation() is called, if
157 // |shutdown_after_lock| is true. 157 // |shutdown_after_lock| is true.
158 void StartLockAnimation(bool shutdown_after_lock); 158 void StartLockAnimation(bool shutdown_after_lock);
159 159
160 // Starts shutting down (with slow animation) that can be cancelled. 160 // Starts shutting down (with slow animation) that can be cancelled.
161 void StartShutdownAnimation(); 161 void StartShutdownAnimation();
162 162
163 // Starts usual lock animation, but locks immediately. 163 // Starts usual lock animation, but locks immediately.
164 // Unlike StartLockAnimation it does no lead to StartShutdownAnimation. 164 // After locking and |kLockToShutdownTimeoutMs| StartShutdownAnimation()
165 void StartLockAnimationAndLockImmediately(); 165 // will be called unless CancelShutdownAnimation() is called, if
166 // |shutdown_after_lock| is true.
167 void StartLockAnimationAndLockImmediately(bool shutdown_after_lock);
166 168
167 // Returns true if we have requested system to lock, but haven't received 169 // Returns true if we have requested system to lock, but haven't received
168 // confirmation yet. 170 // confirmation yet.
169 bool LockRequested(); 171 bool LockRequested();
170 172
171 // Returns true if we are shutting down. 173 // Returns true if we are shutting down.
172 bool ShutdownRequested(); 174 bool ShutdownRequested();
173 175
174 // Returns true if we are within cancellable lock timeframe. 176 // Returns true if we are within cancellable lock timeframe.
175 bool CanCancelLockAnimation(); 177 bool CanCancelLockAnimation();
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 base::Closure lock_screen_displayed_callback_; 323 base::Closure lock_screen_displayed_callback_;
322 324
323 base::WeakPtrFactory<LockStateController> weak_ptr_factory_; 325 base::WeakPtrFactory<LockStateController> weak_ptr_factory_;
324 326
325 DISALLOW_COPY_AND_ASSIGN(LockStateController); 327 DISALLOW_COPY_AND_ASSIGN(LockStateController);
326 }; 328 };
327 329
328 } // namespace ash 330 } // namespace ash
329 331
330 #endif // ASH_WM_LOCK_STATE_CONTROLLER_H_ 332 #endif // ASH_WM_LOCK_STATE_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698