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

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

Issue 2923773003: Adding mojo calls for several lock screen related operations. (Closed)
Patch Set: comments and rebase 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
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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 AuthType auth_type, 71 AuthType auth_type,
72 mojo.common.mojom.String16 initial_value); 72 mojo.common.mojom.String16 initial_value);
73 73
74 // Requests to load users in the lock screen. 74 // Requests to load users in the lock screen.
75 // TODO: create a mojo struct for |users|, this contains user information 75 // TODO: create a mojo struct for |users|, this contains user information
76 // for login/lock screen, some of which might not be needed for the new 76 // for login/lock screen, some of which might not be needed for the new
77 // view-based UI. See crbug.com/729687. 77 // view-based UI. See crbug.com/729687.
78 // |users|: A list of users who can unlock the device. 78 // |users|: A list of users who can unlock the device.
79 // |show_guest|: Whether to show guest session button. 79 // |show_guest|: Whether to show guest session button.
80 LoadUsers(mojo.common.mojom.ListValue users, bool show_guest); 80 LoadUsers(mojo.common.mojom.ListValue users, bool show_guest);
81
82 // Notification if pin is enabled or disabled for the given user.
83 // |account_id|: The account id of the user in the user pod.
84 // |is_enabled|: True if pin unlock is enabled.
85 SetPinEnabledForUser(signin.mojom.AccountId account_id, bool is_enabled);
81 }; 86 };
82 87
83 // Allows ash lock screen to control a client (e.g. Chrome browser). Requests 88 // Allows ash lock screen to control a client (e.g. Chrome browser). Requests
84 // often involve preferences or talk to cryptohome that is not available to ash. 89 // often involve preferences or talk to cryptohome that is not available to ash.
85 interface LockScreenClient { 90 interface LockScreenClient {
86 // Request user authentication in chrome. 91 // Request user authentication in chrome.
87 // If auth succeeds: 92 // If auth succeeds:
88 // chrome will hide the lock screen and clear any displayed error messages. 93 // chrome will hide the lock screen and clear any displayed error messages.
89 // If auth fails: 94 // If auth fails:
90 // chrome will request lock screen to show error messages. 95 // chrome will request lock screen to show error messages.
(...skipping 10 matching lines...) Expand all
101 // |account_id|: The account id of the user we are authenticating. 106 // |account_id|: The account id of the user we are authenticating.
102 AttemptUnlock(signin.mojom.AccountId account_id); 107 AttemptUnlock(signin.mojom.AccountId account_id);
103 108
104 // Request to hard lock the user pod. 109 // Request to hard lock the user pod.
105 // |account_id|: The account id of the user in the user pod. 110 // |account_id|: The account id of the user in the user pod.
106 HardlockPod(signin.mojom.AccountId account_id); 111 HardlockPod(signin.mojom.AccountId account_id);
107 112
108 // Record clicks on the lock icon in the user pod. 113 // Record clicks on the lock icon in the user pod.
109 // |account_id|: The account id of the user in the user pod. 114 // |account_id|: The account id of the user in the user pod.
110 RecordClickOnLockIcon(signin.mojom.AccountId account_id); 115 RecordClickOnLockIcon(signin.mojom.AccountId account_id);
116
117 // Focus user pod of user with |account_id|.
118 FocusPod(signin.mojom.AccountId account_id);
xiyuan 2017/06/12 18:17:13 nit: This and NoPodFocused are more like notificat
xiaoyinh(OOO Sep 11-29) 2017/06/12 21:53:53 Done.
119
120 // Notify that no user pod is focused.
121 NoPodFocused();
122
123 // Load wallpaper of user with |account_id|.
124 LoadWallpaper(signin.mojom.AccountId account_id);
125
126 // Sign out current user.
127 SignOutUser();
128
129 // User with |account_id| has reached maximum incorrect password attempts.
130 MaxIncorrectPasswordAttempts(signin.mojom.AccountId account_id);
jdufault 2017/06/12 18:05:49 nit: OnMaxIncorrectPasswordAttemptsReached?
xiyuan 2017/06/12 18:17:12 nit: MaxIncorrectPasswordAttempts -> OnMaxIncorrec
xiaoyinh(OOO Sep 11-29) 2017/06/12 21:53:53 Done.
xiaoyinh(OOO Sep 11-29) 2017/06/12 21:53:53 Thanks! Changed to OnMaxIncorrectPasswordAttempted
111 }; 131 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698