OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 /** | 5 /** |
6 * @fileoverview Account picker screen implementation. | 6 * @fileoverview Account picker screen implementation. |
7 */ | 7 */ |
8 | 8 |
9 login.createScreen('AccountPickerScreen', 'account-picker', function() { | 9 login.createScreen('AccountPickerScreen', 'account-picker', function() { |
10 /** | 10 /** |
(...skipping 17 matching lines...) Expand all Loading... |
28 'setApps', | 28 'setApps', |
29 'setShouldShowApps', | 29 'setShouldShowApps', |
30 'showAppError', | 30 'showAppError', |
31 'updateUserImage', | 31 'updateUserImage', |
32 'setCapsLockState', | 32 'setCapsLockState', |
33 'forceLockedUserPodFocus', | 33 'forceLockedUserPodFocus', |
34 'removeUser', | 34 'removeUser', |
35 'showBannerMessage', | 35 'showBannerMessage', |
36 'showUserPodCustomIcon', | 36 'showUserPodCustomIcon', |
37 'hideUserPodCustomIcon', | 37 'hideUserPodCustomIcon', |
| 38 'setUserPodFingerprintIcon', |
| 39 'removeUserPodFingerprintIcon', |
38 'disablePinKeyboardForUser', | 40 'disablePinKeyboardForUser', |
39 'setAuthType', | 41 'setAuthType', |
40 'setTouchViewState', | 42 'setTouchViewState', |
41 'setPublicSessionDisplayName', | 43 'setPublicSessionDisplayName', |
42 'setPublicSessionLocales', | 44 'setPublicSessionLocales', |
43 'setPublicSessionKeyboardLayouts', | 45 'setPublicSessionKeyboardLayouts', |
44 ], | 46 ], |
45 | 47 |
46 preferredWidth_: 0, | 48 preferredWidth_: 0, |
47 preferredHeight_: 0, | 49 preferredHeight_: 0, |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 * Hides the custom icon in the user pod of |username| added by | 414 * Hides the custom icon in the user pod of |username| added by |
413 * showUserPodCustomIcon(). This function is used by the | 415 * showUserPodCustomIcon(). This function is used by the |
414 * chrome.screenlockPrivate API. | 416 * chrome.screenlockPrivate API. |
415 * @param {string} username Username of pod to remove button | 417 * @param {string} username Username of pod to remove button |
416 */ | 418 */ |
417 hideUserPodCustomIcon: function(username) { | 419 hideUserPodCustomIcon: function(username) { |
418 $('pod-row').hideUserPodCustomIcon(username); | 420 $('pod-row').hideUserPodCustomIcon(username); |
419 }, | 421 }, |
420 | 422 |
421 /** | 423 /** |
| 424 * Set a fingerprint icon in the user pod of |username|. |
| 425 * @param {string} username Username of the selected user |
| 426 * @param {number} state Fingerprint unlock state |
| 427 */ |
| 428 setUserPodFingerprintIcon: function(username, state) { |
| 429 $('pod-row').setUserPodFingerprintIcon(username, state); |
| 430 }, |
| 431 |
| 432 /** |
| 433 * Removes the fingerprint icon in the user pod of |username|. |
| 434 * @param {string} username Username of the selected user. |
| 435 */ |
| 436 removeUserPodFingerprintIcon: function(username) { |
| 437 $('pod-row').removeUserPodFingerprintIcon(username); |
| 438 }, |
| 439 |
| 440 /** |
422 * Sets the authentication type used to authenticate the user. | 441 * Sets the authentication type used to authenticate the user. |
423 * @param {string} username Username of selected user | 442 * @param {string} username Username of selected user |
424 * @param {number} authType Authentication type, must be a valid value in | 443 * @param {number} authType Authentication type, must be a valid value in |
425 * the AUTH_TYPE enum in user_pod_row.js. | 444 * the AUTH_TYPE enum in user_pod_row.js. |
426 * @param {string} value The initial value to use for authentication. | 445 * @param {string} value The initial value to use for authentication. |
427 */ | 446 */ |
428 setAuthType: function(username, authType, value) { | 447 setAuthType: function(username, authType, value) { |
429 $('pod-row').setAuthType(username, authType, value); | 448 $('pod-row').setAuthType(username, authType, value); |
430 }, | 449 }, |
431 | 450 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 * @param {string} userID The user ID of the public session | 496 * @param {string} userID The user ID of the public session |
478 * @param {string} locale The locale to which this list of keyboard layouts | 497 * @param {string} locale The locale to which this list of keyboard layouts |
479 * applies | 498 * applies |
480 * @param {!Object} list List of available keyboard layouts | 499 * @param {!Object} list List of available keyboard layouts |
481 */ | 500 */ |
482 setPublicSessionKeyboardLayouts: function(userID, locale, list) { | 501 setPublicSessionKeyboardLayouts: function(userID, locale, list) { |
483 $('pod-row').setPublicSessionKeyboardLayouts(userID, locale, list); | 502 $('pod-row').setPublicSessionKeyboardLayouts(userID, locale, list); |
484 } | 503 } |
485 }; | 504 }; |
486 }); | 505 }); |
OLD | NEW |