Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(639)

Side by Side Diff: ash/public/interfaces/session_controller.mojom

Issue 2832903002: cros: Remove supervised user methods from SystemTrayDelegate (Closed)
Patch Set: rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/ash_strings.grd ('k') | ash/system/supervised/custodian_info_tray_observer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // Active Directory user. Authenticates against Active Directory server. 64 // Active Directory user. Authenticates against Active Directory server.
65 ACTIVE_DIRECTORY, 65 ACTIVE_DIRECTORY,
66 }; 66 };
67 67
68 // Matches ash::CycleUserDirection. 68 // Matches ash::CycleUserDirection.
69 enum CycleUserDirection { 69 enum CycleUserDirection {
70 NEXT, // Cycle to the next user. 70 NEXT, // Cycle to the next user.
71 PREVIOUS, // Cycle to the previous user. 71 PREVIOUS, // Cycle to the previous user.
72 }; 72 };
73 73
74 // Info about a user session in ash. 74 // Info about a user session in ash. May be sent repeatedly for a single user
75 // because individual fields may change (e.g. the avatar image or custodians).
75 struct UserSession { 76 struct UserSession {
76 // A user session id for the user session. It is generated by session manager 77 // A user session id for the user session. It is generated by session manager
77 // (chrome) when a user session starts and never changes during the lifetime 78 // (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 79 // of the session manager. The number starts at 1 for the first user session
79 // and incremented by one for each subsequent user session. 80 // and incremented by one for each subsequent user session.
80 uint32 session_id; 81 uint32 session_id;
81 82
82 UserType type; 83 UserType type;
83 signin.mojom.AccountId account_id; 84 signin.mojom.AccountId account_id;
84 string display_name; 85 string display_name;
85 string display_email; 86 string display_email;
86 gfx.mojom.ImageSkia avatar; 87 gfx.mojom.ImageSkia avatar;
87 88
89 // For supervised users only, the email address of the custodian account.
90 // Empty for non-supervised users. Available after profile is loaded.
91 string custodian_email;
92
93 // For supervised users only, the email address of the second custodian
94 // account, if any. Available after profile is loaded.
95 string second_custodian_email;
96
88 // Whether the settings icon should be enabled in the system tray menu. 97 // 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 98 // Usually true after login, but can be false for specialized user sessions
90 // (e.g. adding supervised users). 99 // (e.g. adding supervised users).
91 bool should_enable_settings; 100 bool should_enable_settings;
92 101
93 // Similar to |should_show_settings| but for the notification tray. 102 // Similar to |should_show_settings| but for the notification tray.
94 bool should_show_notification_tray; 103 bool should_show_notification_tray;
95 }; 104 };
96 105
97 // Matches ash::AddUserSessionPolicy. 106 // Matches ash::AddUserSessionPolicy.
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 // Requests to lock screen. 174 // Requests to lock screen.
166 RequestLockScreen(); 175 RequestLockScreen();
167 176
168 // Switch to the active user with |account_id| (if the user has already signed 177 // Switch to the active user with |account_id| (if the user has already signed
169 // in). 178 // in).
170 SwitchActiveUser(signin.mojom.AccountId account_id); 179 SwitchActiveUser(signin.mojom.AccountId account_id);
171 180
172 // Switch the active user to the next or previous user. 181 // Switch the active user to the next or previous user.
173 CycleActiveUser(CycleUserDirection direction); 182 CycleActiveUser(CycleUserDirection direction);
174 }; 183 };
OLDNEW
« no previous file with comments | « ash/ash_strings.grd ('k') | ash/system/supervised/custodian_info_tray_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698