Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 124 | 124 |
| 125 // Cancels shutting down and reverts shutdown animation. | 125 // Cancels shutting down and reverts shutdown animation. |
| 126 virtual void CancelShutdownAnimation() = 0; | 126 virtual void CancelShutdownAnimation() = 0; |
| 127 | 127 |
| 128 // Called when Chrome gets a request to display the lock screen. | 128 // Called when Chrome gets a request to display the lock screen. |
| 129 virtual void OnStartingLock() = 0; | 129 virtual void OnStartingLock() = 0; |
| 130 | 130 |
| 131 // Displays the shutdown animation and requests shutdown when it's done. | 131 // Displays the shutdown animation and requests shutdown when it's done. |
| 132 virtual void RequestShutdown() = 0; | 132 virtual void RequestShutdown() = 0; |
| 133 | 133 |
| 134 // Called when ScreenLocker is ready to close, but not yet destroyed. | |
| 135 // Can be used to display "hiding" animations on unlock. | |
| 136 // |callback| must be called when all animations are done. | |
|
Daniel Erat
2012/10/25 15:45:58
nit: s/must/will/ ?
| |
| 137 virtual void OnLockScreenHide(base::Callback<void(void)>& callback) = 0; | |
| 138 | |
| 134 protected: | 139 protected: |
| 135 friend class test::PowerButtonControllerTest; | 140 friend class test::PowerButtonControllerTest; |
| 136 | 141 |
| 137 bool IsLoggedInAsNonGuest() const; | 142 bool IsLoggedInAsNonGuest() const; |
| 138 | 143 |
| 139 scoped_ptr<internal::SessionStateAnimator> animator_; | 144 scoped_ptr<internal::SessionStateAnimator> animator_; |
| 140 | 145 |
| 141 scoped_ptr<SessionStateControllerDelegate> delegate_; | 146 scoped_ptr<SessionStateControllerDelegate> delegate_; |
| 142 | 147 |
| 143 private: | 148 private: |
| 144 DISALLOW_COPY_AND_ASSIGN(SessionStateController); | 149 DISALLOW_COPY_AND_ASSIGN(SessionStateController); |
| 145 }; | 150 }; |
| 146 | 151 |
| 147 } // namespace ash | 152 } // namespace ash |
| 148 | 153 |
| 149 #endif // ASH_WM_SESSION_STATE_CONTROLLER_H_ | 154 #endif // ASH_WM_SESSION_STATE_CONTROLLER_H_ |
| OLD | NEW |