| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_COMMON_SESSION_SESSION_CONTROLLER_H_ | 5 #ifndef ASH_COMMON_SESSION_SESSION_CONTROLLER_H_ |
| 6 #define ASH_COMMON_SESSION_SESSION_CONTROLLER_H_ | 6 #define ASH_COMMON_SESSION_SESSION_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 73 |
| 74 // Locks the screen. The locking happens asynchronously. | 74 // Locks the screen. The locking happens asynchronously. |
| 75 void LockScreen(); | 75 void LockScreen(); |
| 76 | 76 |
| 77 // Switches to another active user with |account_id| (if that user has | 77 // Switches to another active user with |account_id| (if that user has |
| 78 // already signed in). | 78 // already signed in). |
| 79 void SwitchActiveUser(const AccountId& account_id); | 79 void SwitchActiveUser(const AccountId& account_id); |
| 80 | 80 |
| 81 // Switches the active user to the next or previous user, with the same | 81 // Switches the active user to the next or previous user, with the same |
| 82 // ordering as user sessions are created. | 82 // ordering as user sessions are created. |
| 83 void CycleActiveUser(bool next_user); | 83 void CycleActiveUser(CycleUser cycle_user); |
| 84 | 84 |
| 85 void AddSessionStateObserver(SessionStateObserver* observer); | 85 void AddSessionStateObserver(SessionStateObserver* observer); |
| 86 void RemoveSessionStateObserver(SessionStateObserver* observer); | 86 void RemoveSessionStateObserver(SessionStateObserver* observer); |
| 87 | 87 |
| 88 // mojom::SessionController | 88 // mojom::SessionController |
| 89 void SetClient(mojom::SessionControllerClientPtr client) override; | 89 void SetClient(mojom::SessionControllerClientPtr client) override; |
| 90 void SetSessionInfo(mojom::SessionInfoPtr info) override; | 90 void SetSessionInfo(mojom::SessionInfoPtr info) override; |
| 91 void UpdateUserSession(mojom::UserSessionPtr user_session) override; | 91 void UpdateUserSession(mojom::UserSessionPtr user_session) override; |
| 92 void SetUserSessionOrder( | 92 void SetUserSessionOrder( |
| 93 const std::vector<uint32_t>& user_session_order) override; | 93 const std::vector<uint32_t>& user_session_order) override; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 119 uint32_t active_session_id_ = 0u; | 119 uint32_t active_session_id_ = 0u; |
| 120 | 120 |
| 121 base::ObserverList<ash::SessionStateObserver> observers_; | 121 base::ObserverList<ash::SessionStateObserver> observers_; |
| 122 | 122 |
| 123 DISALLOW_COPY_AND_ASSIGN(SessionController); | 123 DISALLOW_COPY_AND_ASSIGN(SessionController); |
| 124 }; | 124 }; |
| 125 | 125 |
| 126 } // namespace ash | 126 } // namespace ash |
| 127 | 127 |
| 128 #endif // ASH_COMMON_SESSION_SESSION_CONTROLLER_H_ | 128 #endif // ASH_COMMON_SESSION_SESSION_CONTROLLER_H_ |
| OLD | NEW |