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

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

Issue 2937553002: Create Mojo Struct for user information used in login/lock screen. (Closed)
Patch Set: Add user behavior enum in mojom file 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
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 "ash/public/interfaces/user_info.mojom";
8 import "mojo/common/string16.mojom";
9
10 // Supported authentication types. Keep in sync with enum in
11 // screenlock_bridge.h
12 enum AuthType {
13 OFFLINE_PASSWORD,
14 ONLINE_SIGN_IN,
15 NUMERIC_PIN,
16 USER_CLICK,
17 EXPAND_THEN_USER_CLICK,
18 FORCE_OFFLINE_PASSWORD,
19 };
20
21 // Supported multi-profile user behavior values.
22 // Keep in sync with the enum in multi_profile_user_controller.h
jdufault 2017/06/16 21:07:23 Can we replace the enum in multi_profile_user_cont
23 enum MultiProfileUserBehavior {
24 UNRESTRICTED,
25 PRIMARY_ONLY,
26 NOT_ALLOWED,
27 OWNER_PRIMARY_ONLY,
28 };
29
30 // Information about the custom icon in the user pod.
31 struct UserPodCustomIconOptions {
32 string id;
33 mojo.common.mojom.String16 tooltip;
34 bool autoshow_tooltip;
35 mojo.common.mojom.String16 aria_label;
36 bool hardlock_on_click;
37 bool is_trial_run;
38 };
39
40 // Info about a user in login/lock screen.
41 struct LoginUserInfo {
42 // User's basic information including account id, email, avatar etc.
43 UserInfo basic_user_info;
44
45 // What method the user can use to sign in.
46 AuthType auth_type;
47
48 // True if this user has already signed in.
49 bool is_signed_in;
50
51 // True if this user is the device owner.
52 bool is_device_owner;
53
54 // True if fingerprint unlock is allowed for this user.
55 bool allow_fingerprint_unlock;
56
57 // True if multi-profiles sign in is allowed for this user.
58 bool is_multiprofile_allowed;
59
60 // Enforced policy for multi-profiles sign in.
61 MultiProfileUserBehavior multiprofile_policy;
62
63 // True if this user can be removed.
64 bool can_remove;
65 };
OLDNEW
« no previous file with comments | « ash/public/interfaces/lock_screen.mojom ('k') | chrome/browser/chromeos/login/lock/views_screen_locker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698