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 "components/proximity_auth/public/interfaces/auth_type.mojom"; |
| 9 import "mojo/common/string16.mojom"; |
| 10 |
| 11 // Supported multi-profile user behavior values. |
| 12 // Keep in sync with the enum in md_user_pod_row.js and user_pod_row.js |
| 13 enum MultiProfileUserBehavior { |
| 14 UNRESTRICTED = 0, |
| 15 PRIMARY_ONLY = 1, |
| 16 NOT_ALLOWED = 2, |
| 17 OWNER_PRIMARY_ONLY = 3, |
| 18 }; |
| 19 |
| 20 // Information about the custom icon in the user pod. |
| 21 struct UserPodCustomIconOptions { |
| 22 string id; |
| 23 mojo.common.mojom.String16 tooltip; |
| 24 bool autoshow_tooltip; |
| 25 mojo.common.mojom.String16 aria_label; |
| 26 bool hardlock_on_click; |
| 27 bool is_trial_run; |
| 28 }; |
| 29 |
| 30 // Info about a user in login/lock screen. |
| 31 struct LoginUserInfo { |
| 32 // User's basic information including account id, email, avatar etc. |
| 33 UserInfo basic_user_info; |
| 34 |
| 35 // What method the user can use to sign in. |
| 36 proximity_auth.mojom.AuthType auth_type; |
| 37 |
| 38 // True if this user has already signed in. |
| 39 bool is_signed_in; |
| 40 |
| 41 // True if this user is the device owner. |
| 42 bool is_device_owner; |
| 43 |
| 44 // True if fingerprint unlock is allowed for this user. |
| 45 bool allow_fingerprint_unlock; |
| 46 |
| 47 // True if multi-profiles sign in is allowed for this user. |
| 48 bool is_multiprofile_allowed; |
| 49 |
| 50 // Enforced policy for multi-profiles sign in. |
| 51 MultiProfileUserBehavior multiprofile_policy; |
| 52 |
| 53 // True if this user can be removed. |
| 54 bool can_remove; |
| 55 }; |
OLD | NEW |