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 #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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 DISALLOW_COPY_AND_ASSIGN(TestApi); | 142 DISALLOW_COPY_AND_ASSIGN(TestApi); |
143 }; | 143 }; |
144 | 144 |
145 LockStateController(); | 145 LockStateController(); |
146 ~LockStateController() override; | 146 ~LockStateController() override; |
147 | 147 |
148 void SetDelegate(scoped_ptr<LockStateControllerDelegate> delegate); | 148 void SetDelegate(scoped_ptr<LockStateControllerDelegate> delegate); |
149 | 149 |
150 void AddObserver(LockStateObserver* observer); | 150 void AddObserver(LockStateObserver* observer); |
151 void RemoveObserver(LockStateObserver* observer); | 151 void RemoveObserver(LockStateObserver* observer); |
152 bool HasObserver(LockStateObserver* observer); | 152 bool HasObserver(const LockStateObserver* observer) const; |
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 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 |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 base::Closure lock_screen_displayed_callback_; | 326 base::Closure lock_screen_displayed_callback_; |
327 | 327 |
328 base::WeakPtrFactory<LockStateController> weak_ptr_factory_; | 328 base::WeakPtrFactory<LockStateController> weak_ptr_factory_; |
329 | 329 |
330 DISALLOW_COPY_AND_ASSIGN(LockStateController); | 330 DISALLOW_COPY_AND_ASSIGN(LockStateController); |
331 }; | 331 }; |
332 | 332 |
333 } // namespace ash | 333 } // namespace ash |
334 | 334 |
335 #endif // ASH_WM_LOCK_STATE_CONTROLLER_H_ | 335 #endif // ASH_WM_LOCK_STATE_CONTROLLER_H_ |
OLD | NEW |