| 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 // Called when ScreenLocker is ready to close, but not yet destroyed. | 191 // Called when ScreenLocker is ready to close, but not yet destroyed. |
| 192 // Can be used to display "hiding" animations on unlock. | 192 // Can be used to display "hiding" animations on unlock. |
| 193 // |callback| will be called when all animations are done. | 193 // |callback| will be called when all animations are done. |
| 194 void OnLockScreenHide(base::Closure& callback); | 194 void OnLockScreenHide(base::Closure& callback); |
| 195 | 195 |
| 196 // Sets up the callback that should be called once lock animation is finished. | 196 // Sets up the callback that should be called once lock animation is finished. |
| 197 // Callback is guaranteed to be called once and then discarded. | 197 // Callback is guaranteed to be called once and then discarded. |
| 198 void SetLockScreenDisplayedCallback(const base::Closure& callback); | 198 void SetLockScreenDisplayedCallback(const base::Closure& callback); |
| 199 | 199 |
| 200 // RootWindowObserver override: | 200 // RootWindowObserver override: |
| 201 virtual void OnRootWindowHostCloseRequested( | 201 virtual void OnWindowTreeHostCloseRequested( |
| 202 const aura::RootWindow* root) OVERRIDE; | 202 const aura::RootWindow* root) OVERRIDE; |
| 203 | 203 |
| 204 // ShellObserver overrides: | 204 // ShellObserver overrides: |
| 205 virtual void OnLoginStateChanged(user::LoginStatus status) OVERRIDE; | 205 virtual void OnLoginStateChanged(user::LoginStatus status) OVERRIDE; |
| 206 virtual void OnAppTerminating() OVERRIDE; | 206 virtual void OnAppTerminating() OVERRIDE; |
| 207 virtual void OnLockStateChanged(bool locked) OVERRIDE; | 207 virtual void OnLockStateChanged(bool locked) OVERRIDE; |
| 208 | 208 |
| 209 private: | 209 private: |
| 210 friend class test::PowerButtonControllerTest; | 210 friend class test::PowerButtonControllerTest; |
| 211 friend class test::LockStateControllerTest; | 211 friend class test::LockStateControllerTest; |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 base::OneShotTimer<LockStateController> real_shutdown_timer_; | 319 base::OneShotTimer<LockStateController> real_shutdown_timer_; |
| 320 | 320 |
| 321 base::Closure lock_screen_displayed_callback_; | 321 base::Closure lock_screen_displayed_callback_; |
| 322 | 322 |
| 323 DISALLOW_COPY_AND_ASSIGN(LockStateController); | 323 DISALLOW_COPY_AND_ASSIGN(LockStateController); |
| 324 }; | 324 }; |
| 325 | 325 |
| 326 } // namespace ash | 326 } // namespace ash |
| 327 | 327 |
| 328 #endif // ASH_WM_LOCK_STATE_CONTROLLER_H_ | 328 #endif // ASH_WM_LOCK_STATE_CONTROLLER_H_ |
| OLD | NEW |