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

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

Issue 2911493002: cros: Pull user info from session_controller_client.mojom into separate mojom. (Closed)
Patch Set: Fix ordering in typemaps Created 3 years, 7 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/public/interfaces/BUILD.gn ('k') | ash/public/interfaces/session_controller.typemap » ('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 "ash/public/interfaces/user_info.mojom";
7 import "components/signin/public/interfaces/account_id.mojom"; 8 import "components/signin/public/interfaces/account_id.mojom";
8 import "ui/gfx/image/mojo/image.mojom";
9 9
10 // Matches session_manager::SessionState. 10 // Matches session_manager::SessionState.
11 enum SessionState { 11 enum SessionState {
12 // Default value, when session state hasn't been initialized yet. 12 // Default value, when session state hasn't been initialized yet.
13 UNKNOWN, 13 UNKNOWN,
14 14
15 // Running out of box UI. 15 // Running out of box UI.
16 OOBE, 16 OOBE,
17 17
18 // Running login UI (primary user) but user sign in hasn't completed yet. 18 // Running login UI (primary user) but user sign in hasn't completed yet.
(...skipping 11 matching lines...) Expand all
30 ACTIVE, 30 ACTIVE,
31 31
32 // The session screen is locked. 32 // The session screen is locked.
33 LOCKED, 33 LOCKED,
34 34
35 // Same as SESSION_STATE_LOGIN_PRIMARY but for multi-profiles sign in i.e. 35 // Same as SESSION_STATE_LOGIN_PRIMARY but for multi-profiles sign in i.e.
36 // when there's at least one user already active in the session. 36 // when there's at least one user already active in the session.
37 LOGIN_SECONDARY, 37 LOGIN_SECONDARY,
38 }; 38 };
39 39
40 // Matches user_manager::UserType.
41 enum UserType {
42 // Regular user, has a user name and password.
43 REGULAR,
44
45 // Guest user, logs in without authentication.
46 GUEST,
47
48 // Public account user, logs in without authentication. Available only if
49 // enabled through policy.
50 PUBLIC_ACCOUNT,
51
52 // Supervised user, logs in only with local authentication.
53 SUPERVISED,
54
55 // Kiosk app robot, logs in without authentication.
56 KIOSK,
57
58 // Child user, with supervised options.
59 CHILD,
60
61 // Android app in kiosk mode, logs in without authentication.
62 ARC_KIOSK,
63
64 // Active Directory user. Authenticates against Active Directory server.
65 ACTIVE_DIRECTORY,
66 };
67
68 // Matches ash::CycleUserDirection. 40 // Matches ash::CycleUserDirection.
69 enum CycleUserDirection { 41 enum CycleUserDirection {
70 NEXT, // Cycle to the next user. 42 NEXT, // Cycle to the next user.
71 PREVIOUS, // Cycle to the previous user. 43 PREVIOUS, // Cycle to the previous user.
72 }; 44 };
73 45
74 // Info about a user session in ash. May be sent repeatedly for a single user 46 // 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). 47 // because individual fields may change (e.g. the avatar image or custodians).
76 struct UserSession { 48 struct UserSession {
77 // A user session id for the user session. It is generated by session manager 49 // A user session id for the user session. It is generated by session manager
78 // (chrome) when a user session starts and never changes during the lifetime 50 // (chrome) when a user session starts and never changes during the lifetime
79 // of the session manager. The number starts at 1 for the first user session 51 // of the session manager. The number starts at 1 for the first user session
80 // and incremented by one for each subsequent user session. 52 // and incremented by one for each subsequent user session.
81 uint32 session_id; 53 uint32 session_id;
82 54
83 UserType type; 55 // Contains general user information state, like the account id, display name,
84 signin.mojom.AccountId account_id; 56 // and avatar.
85 string display_name; 57 UserInfo user_info;
86 string display_email;
87 gfx.mojom.ImageSkia avatar;
88 58
89 // For supervised users only, the email address of the custodian account. 59 // For supervised users only, the email address of the custodian account.
90 // Empty for non-supervised users. Available after profile is loaded. 60 // Empty for non-supervised users. Available after profile is loaded.
91 string custodian_email; 61 string custodian_email;
92 62
93 // For supervised users only, the email address of the second custodian 63 // For supervised users only, the email address of the second custodian
94 // account, if any. Available after profile is loaded. 64 // account, if any. Available after profile is loaded.
95 string second_custodian_email; 65 string second_custodian_email;
96 66
97 // Whether the settings icon should be enabled in the system tray menu. 67 // Whether the settings icon should be enabled in the system tray menu.
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 // Requests to lock screen. 148 // Requests to lock screen.
179 RequestLockScreen(); 149 RequestLockScreen();
180 150
181 // Switch to the active user with |account_id| (if the user has already signed 151 // Switch to the active user with |account_id| (if the user has already signed
182 // in). 152 // in).
183 SwitchActiveUser(signin.mojom.AccountId account_id); 153 SwitchActiveUser(signin.mojom.AccountId account_id);
184 154
185 // Switch the active user to the next or previous user. 155 // Switch the active user to the next or previous user.
186 CycleActiveUser(CycleUserDirection direction); 156 CycleActiveUser(CycleUserDirection direction);
187 }; 157 };
OLDNEW
« no previous file with comments | « ash/public/interfaces/BUILD.gn ('k') | ash/public/interfaces/session_controller.typemap » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698