OLD | NEW |
---|---|
(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 md_user_pod_row.js and user_pod_row.js | |
23 enum MultiProfileUserBehavior { | |
24 UNRESTRICTED, | |
jdufault
2017/06/16 22:18:09
Does mojo allow us to explicitly give values here,
xiyuan
2017/06/16 23:05:41
Yes.
See https://chromium.googlesource.com/chromi
xiaoyinh(OOO Sep 11-29)
2017/06/19 17:29:50
Done.
| |
25 PRIMARY_ONLY, | |
26 NOT_ALLOWED, | |
27 OWNER_PRIMARY_ONLY, | |
xiyuan
2017/06/16 23:05:41
nit: wrong indent
xiaoyinh(OOO Sep 11-29)
2017/06/19 17:29:50
Done.
| |
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 }; | |
OLD | NEW |