| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 // (chrome) when a user session starts and never changes during the lifetime | 77 // (chrome) when a user session starts and never changes during the lifetime |
| 78 // of the session manager. The number starts at 1 for the first user session | 78 // of the session manager. The number starts at 1 for the first user session |
| 79 // and incremented by one for each subsequent user session. | 79 // and incremented by one for each subsequent user session. |
| 80 uint32 session_id; | 80 uint32 session_id; |
| 81 | 81 |
| 82 UserType type; | 82 UserType type; |
| 83 signin.mojom.AccountId account_id; | 83 signin.mojom.AccountId account_id; |
| 84 string display_name; | 84 string display_name; |
| 85 string display_email; | 85 string display_email; |
| 86 gfx.mojom.ImageSkia avatar; | 86 gfx.mojom.ImageSkia avatar; |
| 87 |
| 88 // Whether the settings icon should be enabled in the system tray menu. |
| 89 // Usually true after login, but can be false for specialized user sessions |
| 90 // (e.g. adding supervised users). |
| 91 bool should_enable_settings; |
| 92 |
| 93 // Similar to |should_show_settings| but for the notification tray. |
| 94 bool should_show_notification_tray; |
| 87 }; | 95 }; |
| 88 | 96 |
| 89 // Matches ash::AddUserSessionPolicy. | 97 // Matches ash::AddUserSessionPolicy. |
| 90 enum AddUserSessionPolicy { | 98 enum AddUserSessionPolicy { |
| 91 // Adding a user session is allowed. | 99 // Adding a user session is allowed. |
| 92 ALLOWED, | 100 ALLOWED, |
| 93 | 101 |
| 94 // Disallowed due to primary user's policy. | 102 // Disallowed due to primary user's policy. |
| 95 ERROR_NOT_ALLOWED_PRIMARY_USER, | 103 ERROR_NOT_ALLOWED_PRIMARY_USER, |
| 96 | 104 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 // Requests to lock screen. | 154 // Requests to lock screen. |
| 147 RequestLockScreen(); | 155 RequestLockScreen(); |
| 148 | 156 |
| 149 // Switch to the active user with |account_id| (if the user has already signed | 157 // Switch to the active user with |account_id| (if the user has already signed |
| 150 // in). | 158 // in). |
| 151 SwitchActiveUser(signin.mojom.AccountId account_id); | 159 SwitchActiveUser(signin.mojom.AccountId account_id); |
| 152 | 160 |
| 153 // Switch the active user to the next or previous user. | 161 // Switch the active user to the next or previous user. |
| 154 CycleActiveUser(CycleUserDirection direction); | 162 CycleActiveUser(CycleUserDirection direction); |
| 155 }; | 163 }; |
| OLD | NEW |