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

Unified Diff: ui/login/account_picker/screen_account_picker.js

Issue 2733953008: Add fingerprint UI in user pod (Closed)
Patch Set: Incorporate comments Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: ui/login/account_picker/screen_account_picker.js
diff --git a/ui/login/account_picker/screen_account_picker.js b/ui/login/account_picker/screen_account_picker.js
index d66258e82a379155453c9f2700674540507f0833..572404dfdd6dc4dedc3af414daadb228e75a6830 100644
--- a/ui/login/account_picker/screen_account_picker.js
+++ b/ui/login/account_picker/screen_account_picker.js
@@ -35,6 +35,8 @@ login.createScreen('AccountPickerScreen', 'account-picker', function() {
'showBannerMessage',
'showUserPodCustomIcon',
'hideUserPodCustomIcon',
+ 'setUserPodFingerprintIcon',
+ 'removeUserPodFingerprintIcon',
'disablePinKeyboardForUser',
'setAuthType',
'setTouchViewState',
@@ -419,6 +421,23 @@ login.createScreen('AccountPickerScreen', 'account-picker', function() {
},
/**
+ * Set a fingerprint icon in the user pod of |username|.
+ * @param {string} username Username of the selected user
+ * @param {number} state Fingerprint unlock state
+ */
+ setUserPodFingerprintIcon: function(username, state) {
+ $('pod-row').setUserPodFingerprintIcon(username, state);
+ },
+
+ /**
+ * Removes the fingerprint icon in the user pod of |username|.
+ * @param {string} username Username of the selected user.
+ */
+ removeUserPodFingerprintIcon: function(username) {
+ $('pod-row').removeUserPodFingerprintIcon(username);
+ },
+
+ /**
* Sets the authentication type used to authenticate the user.
* @param {string} username Username of selected user
* @param {number} authType Authentication type, must be a valid value in
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc ('k') | ui/login/account_picker/user_pod_row.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698