Chromium Code Reviews| Index: ash/public/interfaces/lock_screen.mojom |
| diff --git a/ash/public/interfaces/lock_screen.mojom b/ash/public/interfaces/lock_screen.mojom |
| index d29b331e358a170c9d54b99bd61f448b5cece027..4ee4b3ea95aef5ea8d2e77dcbf4aa0e61260cbca 100644 |
| --- a/ash/public/interfaces/lock_screen.mojom |
| +++ b/ash/public/interfaces/lock_screen.mojom |
| @@ -5,6 +5,7 @@ |
| module ash.mojom; |
| import "components/signin/public/interfaces/account_id.mojom"; |
| +import "mojo/common/values.mojom"; |
| // Allows clients (e.g. Chrome browser) to control the ash lock screen. |
| interface LockScreen { |
| @@ -25,6 +26,29 @@ interface LockScreen { |
| // Requests to close any displayed error messages in ash lock screen. |
| ClearErrors(); |
| + |
| + // Requests to show the custom icon in the user pod. |
| + // |account_id|: The account id of the user in the user pod. |
| + // |icon|: Information regarding the icon. |
| + ShowUserPodCustomIcon(signin.mojom.AccountId account_id, |
| + mojo.common.mojom.DictionaryValue icon); |
|
xiyuan
2017/05/31 17:51:18
Can we create mojo struct for ScreenlockBridge::Us
xiaoyinh(OOO Sep 11-29)
2017/06/02 23:42:28
Done.
|
| + |
| + // Requests to hide the custom icon in the user pod. |
| + // |account_id|: The account id of the user in the user pod. |
| + HideUserPodCustomIcon(signin.mojom.AccountId account_id); |
| + |
| + // Requests to set the authentication type. |
| + // |account_id|: The account id of the user in the user pod. |
| + // |auth_type|: Authentication type. |
| + // |initial_value|: A message shown in the password field of the user pod. |
| + SetAuthType(signin.mojom.AccountId account_id, |
| + int32 auth_type, |
|
xiyuan
2017/05/31 17:51:18
Create a mojo enum and use it here?
xiaoyinh(OOO Sep 11-29)
2017/06/02 23:42:28
Done.
|
| + string initial_value); |
| + |
| + // Requests to load users in the lock screen. |
| + // |users|: A list of users who can unlock the device. |
| + // |show_guest|: Whether to show guest session button. |
| + LoadUsers(mojo.common.mojom.ListValue users, bool show_guest); |
|
xiyuan
2017/05/31 17:51:18
Similar here, prefer to have a array<some_struct>
jdufault
2017/05/31 22:54:00
ie, ash.mojom.UserInfo
xiaoyinh(OOO Sep 11-29)
2017/06/02 23:42:28
Thanks for the suggestion. Each user in |users| ha
|
| }; |
| // Allows ash lock screen to control a client (e.g. Chrome browser). Requests |
| @@ -41,4 +65,16 @@ interface LockScreenClient { |
| AuthenticateUser(signin.mojom.AccountId account_id, |
| string hashed_password, |
| bool authenticated_by_pin); |
| + |
| + // Request to attempt easy unlock in chrome. |
| + // |account_id|: The account id of the user we are authenticating. |
| + AttemptUnlock(signin.mojom.AccountId account_id); |
| + |
| + // Request to hard lock the user pod. |
| + // |account_id|: The account id of the user in the user pod. |
| + HardlockPod(signin.mojom.AccountId account_id); |
| + |
| + // Record clicks on the lock icon in the user pod. |
| + // |account_id|: The account id of the user in the user pod. |
| + RecordClickOnLockIcon(signin.mojom.AccountId account_id); |
| }; |