Chromium Code Reviews| 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 module ash.mojom; | 5 module ash.mojom; |
| 6 | 6 |
| 7 import "components/signin/public/interfaces/account_id.mojom"; | 7 import "components/signin/public/interfaces/account_id.mojom"; |
| 8 import "ui/gfx/image/mojo/image.mojom"; | 8 import "ui/gfx/image/mojo/image.mojom"; |
| 9 | 9 |
| 10 // Matches session_manager::SessionState. | 10 // Matches session_manager::SessionState. |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 136 // its meta data (e.g. name, avatar) is changed. There is no method to remove | 136 // its meta data (e.g. name, avatar) is changed. There is no method to remove |
| 137 // a user session because ash/chrome does not support that. All users are | 137 // a user session because ash/chrome does not support that. All users are |
| 138 // logged out at the same time. | 138 // logged out at the same time. |
| 139 UpdateUserSession(UserSession user_session); | 139 UpdateUserSession(UserSession user_session); |
| 140 | 140 |
| 141 // Sets the order of user sessions. The order is keyed by the session id. | 141 // Sets the order of user sessions. The order is keyed by the session id. |
| 142 // Currently, session manager set a LRU order with the first one being the | 142 // Currently, session manager set a LRU order with the first one being the |
| 143 // active user session. | 143 // active user session. |
| 144 SetUserSessionOrder(array<uint32> user_session_ids); | 144 SetUserSessionOrder(array<uint32> user_session_ids); |
| 145 | 145 |
| 146 // Runs the pre-lock animation to start locking. The call returns after | |
| 147 // the post-lock animation finishes and the system is fully locked. When | |
|
Tom Sepez
2017/04/20 01:25:00
Can something go wrong and this fail to lock? Do w
xiyuan
2017/04/20 15:14:40
LockStateController has a |lock_fail_timer_| to ha
| |
| 148 // it returns, screen locker runs the post lock jobs such as a11y | |
| 149 // announcement etc. Invoked by the screen locker during initialization. | |
| 150 RunLockAnimation() => (); | |
| 151 | |
| 146 // Runs the pre-unlock animation. Invoked by the screen locker before | 152 // Runs the pre-unlock animation. Invoked by the screen locker before |
| 147 // dismissing. When the mojo call returns, screen locker takes that as a | 153 // dismissing. When the mojo call returns, screen locker takes that as a |
| 148 // signal of finished unlock animation and dismisses itself. | 154 // signal of finished unlock animation and dismisses itself. |
| 149 RunUnlockAnimation() => (); | 155 RunUnlockAnimation() => (); |
| 150 | 156 |
| 151 // Notifies that chrome is terminating. | 157 // Notifies that chrome is terminating. |
| 152 NotifyChromeTerminating(); | 158 NotifyChromeTerminating(); |
| 153 }; | 159 }; |
| 154 | 160 |
| 155 // Interface for ash to request session service from its client (e.g. Chrome). | 161 // Interface for ash to request session service from its client (e.g. Chrome). |
| 156 interface SessionControllerClient { | 162 interface SessionControllerClient { |
| 157 // Requests to lock screen. | 163 // Requests to lock screen. |
| 158 RequestLockScreen(); | 164 RequestLockScreen(); |
| 159 | 165 |
| 160 // Switch to the active user with |account_id| (if the user has already signed | 166 // Switch to the active user with |account_id| (if the user has already signed |
| 161 // in). | 167 // in). |
| 162 SwitchActiveUser(signin.mojom.AccountId account_id); | 168 SwitchActiveUser(signin.mojom.AccountId account_id); |
| 163 | 169 |
| 164 // Switch the active user to the next or previous user. | 170 // Switch the active user to the next or previous user. |
| 165 CycleActiveUser(CycleUserDirection direction); | 171 CycleActiveUser(CycleUserDirection direction); |
| 166 }; | 172 }; |
| OLD | NEW |