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

Side by Side Diff: ash/public/interfaces/user_info.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, 6 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/typemaps.gni ('k') | ash/public/interfaces/user_info.typemap » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 module ash.mojom;
6
7 import "components/signin/public/interfaces/account_id.mojom";
8 import "ui/gfx/image/mojo/image.mojom";
9
10 // Matches user_manager::UserType.
11 enum UserType {
12 // Regular user, has a user name and password.
13 REGULAR,
14
15 // Guest user, logs in without authentication.
16 GUEST,
17
18 // Public account user, logs in without authentication. Available only if
19 // enabled through policy.
20 PUBLIC_ACCOUNT,
21
22 // Supervised user, logs in only with local authentication.
23 SUPERVISED,
24
25 // Kiosk app robot, logs in without authentication.
26 KIOSK,
27
28 // Child user, with supervised options.
29 CHILD,
30
31 // Android app in kiosk mode, logs in without authentication.
32 ARC_KIOSK,
33
34 // Active Directory user. Authenticates against Active Directory server.
35 ACTIVE_DIRECTORY,
36 };
37
38
39 // Info about a user. May be sent repeatedly for a single user because
40 // individual fields may change (e.g. the avatar image or custodians).
41 struct UserInfo {
42 UserType type;
43 signin.mojom.AccountId account_id;
44 string display_name;
45 string display_email;
46 gfx.mojom.ImageSkia avatar;
47 };
OLDNEW
« no previous file with comments | « ash/public/interfaces/typemaps.gni ('k') | ash/public/interfaces/user_info.typemap » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698