OLD | NEW |
---|---|
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 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 "components/signin/public/interfaces/account_id.mojom"; | 7 import "components/signin/public/interfaces/account_id.mojom"; |
8 import "mojo/common/string16.mojom"; | 8 import "mojo/common/string16.mojom"; |
9 import "mojo/common/values.mojom"; | 9 import "mojo/common/values.mojom"; |
10 | 10 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
67 AuthType auth_type, | 67 AuthType auth_type, |
68 mojo.common.mojom.String16 initial_value); | 68 mojo.common.mojom.String16 initial_value); |
69 | 69 |
70 // Requests to load users in the lock screen. | 70 // Requests to load users in the lock screen. |
71 // TODO: create a mojo struct for |users|, this contains user information | 71 // TODO: create a mojo struct for |users|, this contains user information |
72 // for login/lock screen, some of which might not be needed for the new | 72 // for login/lock screen, some of which might not be needed for the new |
73 // view-based UI. See crbug.com/729687. | 73 // view-based UI. See crbug.com/729687. |
74 // |users|: A list of users who can unlock the device. | 74 // |users|: A list of users who can unlock the device. |
75 // |show_guest|: Whether to show guest session button. | 75 // |show_guest|: Whether to show guest session button. |
76 LoadUsers(mojo.common.mojom.ListValue users, bool show_guest); | 76 LoadUsers(mojo.common.mojom.ListValue users, bool show_guest); |
77 | |
78 // Requests to enable pin unlock for user in the user pod. | |
jdufault
2017/06/08 21:12:06
nit: // Notification if pin is enabled or disabled
xiaoyinh(OOO Sep 11-29)
2017/06/09 00:47:10
Thanks! Done.
| |
79 // |account_id|: The account id of the user in the user pod. | |
80 // |is_enabled|: True if pin unlock is enabled. | |
81 SetPinEnabledForUser(signin.mojom.AccountId account_id, bool is_enabled); | |
77 }; | 82 }; |
78 | 83 |
79 // Allows ash lock screen to control a client (e.g. Chrome browser). Requests | 84 // Allows ash lock screen to control a client (e.g. Chrome browser). Requests |
80 // often involve preferences or talk to cryptohome that is not available to ash. | 85 // often involve preferences or talk to cryptohome that is not available to ash. |
81 interface LockScreenClient { | 86 interface LockScreenClient { |
82 // Request user authentication in chrome. | 87 // Request user authentication in chrome. |
83 // If auth succeeds: | 88 // If auth succeeds: |
84 // chrome will hide the lock screen and clear any displayed error messages. | 89 // chrome will hide the lock screen and clear any displayed error messages. |
85 // If auth fails: | 90 // If auth fails: |
86 // chrome will request lock screen to show error messages. | 91 // chrome will request lock screen to show error messages. |
87 // |account_id|: The account id of the user we are authenticating. | 92 // |account_id|: The account id of the user we are authenticating. |
88 // |hashed_password|: The hashed password of the user. | 93 // |hashed_password|: The hashed password of the user. |
89 // |authenticated_by_pin|: True if we are using pin to authenticate. | 94 // |authenticated_by_pin|: True if we are using pin to authenticate. |
90 AuthenticateUser(signin.mojom.AccountId account_id, | 95 AuthenticateUser(signin.mojom.AccountId account_id, |
91 string hashed_password, | 96 string hashed_password, |
92 bool authenticated_by_pin); | 97 bool authenticated_by_pin); |
93 | 98 |
94 // Request to attempt easy unlock in chrome. | 99 // Request to attempt easy unlock in chrome. |
95 // |account_id|: The account id of the user we are authenticating. | 100 // |account_id|: The account id of the user we are authenticating. |
96 AttemptUnlock(signin.mojom.AccountId account_id); | 101 AttemptUnlock(signin.mojom.AccountId account_id); |
97 | 102 |
98 // Request to hard lock the user pod. | 103 // Request to hard lock the user pod. |
99 // |account_id|: The account id of the user in the user pod. | 104 // |account_id|: The account id of the user in the user pod. |
100 HardlockPod(signin.mojom.AccountId account_id); | 105 HardlockPod(signin.mojom.AccountId account_id); |
101 | 106 |
102 // Record clicks on the lock icon in the user pod. | 107 // Record clicks on the lock icon in the user pod. |
103 // |account_id|: The account id of the user in the user pod. | 108 // |account_id|: The account id of the user in the user pod. |
104 RecordClickOnLockIcon(signin.mojom.AccountId account_id); | 109 RecordClickOnLockIcon(signin.mojom.AccountId account_id); |
110 | |
111 // Focus user pod of user with |account_id|. | |
112 FocusPod(signin.mojom.AccountId account_id); | |
113 | |
114 // Notify that no user pod is focused. | |
115 NoPodFocused(); | |
116 | |
117 // Load wallpaper of user with |account_id|. | |
118 LoadWallpaper(signin.mojom.AccountId account_id); | |
119 | |
120 // Sign out current user. | |
121 SignOutUser(); | |
122 | |
123 // User with |account_id| has reached maximum incorrect password attempts. | |
124 MaxIncorrectPasswordAttempts(signin.mojom.AccountId account_id); | |
105 }; | 125 }; |
OLD | NEW |