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 <memory> | 8 #include <memory> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 // Called when Chrome gets a request to display the lock screen. | 105 // Called when Chrome gets a request to display the lock screen. |
106 void OnStartingLock(); | 106 void OnStartingLock(); |
107 | 107 |
108 // Displays the shutdown animation and requests a system shutdown or system | 108 // Displays the shutdown animation and requests a system shutdown or system |
109 // restart depending on the the state of the |RebootOnShutdown| device policy. | 109 // restart depending on the the state of the |RebootOnShutdown| device policy. |
110 void RequestShutdown(); | 110 void RequestShutdown(); |
111 | 111 |
112 // Called when ScreenLocker is ready to close, but not yet destroyed. | 112 // Called when ScreenLocker is ready to close, but not yet destroyed. |
113 // Can be used to display "hiding" animations on unlock. | 113 // Can be used to display "hiding" animations on unlock. |
114 // |callback| will be called when all animations are done. | 114 // |callback| will be called when all animations are done. |
115 void OnLockScreenHide(base::Closure& callback); | 115 void OnLockScreenHide(base::Closure callback); |
116 | 116 |
117 // Sets up the callback that should be called once lock animation is finished. | 117 // Sets up the callback that should be called once lock animation is finished. |
118 // Callback is guaranteed to be called once and then discarded. | 118 // Callback is guaranteed to be called once and then discarded. |
119 void SetLockScreenDisplayedCallback(const base::Closure& callback); | 119 void SetLockScreenDisplayedCallback(const base::Closure& callback); |
120 | 120 |
121 // aura::WindowTreeHostObserver override: | 121 // aura::WindowTreeHostObserver override: |
122 void OnHostCloseRequested(const aura::WindowTreeHost* host) override; | 122 void OnHostCloseRequested(const aura::WindowTreeHost* host) override; |
123 | 123 |
124 // ShellObserver overrides: | 124 // ShellObserver overrides: |
125 void OnAppTerminating() override; | 125 void OnAppTerminating() override; |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 base::Closure lock_screen_displayed_callback_; | 243 base::Closure lock_screen_displayed_callback_; |
244 | 244 |
245 base::WeakPtrFactory<LockStateController> weak_ptr_factory_; | 245 base::WeakPtrFactory<LockStateController> weak_ptr_factory_; |
246 | 246 |
247 DISALLOW_COPY_AND_ASSIGN(LockStateController); | 247 DISALLOW_COPY_AND_ASSIGN(LockStateController); |
248 }; | 248 }; |
249 | 249 |
250 } // namespace ash | 250 } // namespace ash |
251 | 251 |
252 #endif // ASH_WM_LOCK_STATE_CONTROLLER_H_ | 252 #endif // ASH_WM_LOCK_STATE_CONTROLLER_H_ |
OLD | NEW |