| 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 {boolean} visible Set visiblity of the fingerprint icon |
| 426 * @param {string} username Username of the selected user |
| 427 * @param {number} state Fingerprint unlock state |
| 428 */ |
| 429 setUserPodFingerprintIcon: function(visible, username, state) { |
| 430 $('pod-row').setUserPodFingerprintIcon(visible, username, state); |
| 431 }, |
| 432 |
| 433 /** |
| 434 * Removes the fingerprint icon in the user pod of |username|. |
| 435 * @param {string} username Username of the selected user. |
| 436 */ |
| 437 removeUserPodFingerprintIcon: function(username) { |
| 438 $('pod-row').removeUserPodFingerprintIcon(username); |
| 439 }, |
| 440 |
| 441 /** |
| 422 * Sets the authentication type used to authenticate the user. | 442 * Sets the authentication type used to authenticate the user. |
| 423 * @param {string} username Username of selected user | 443 * @param {string} username Username of selected user |
| 424 * @param {number} authType Authentication type, must be a valid value in | 444 * @param {number} authType Authentication type, must be a valid value in |
| 425 * the AUTH_TYPE enum in user_pod_row.js. | 445 * the AUTH_TYPE enum in user_pod_row.js. |
| 426 * @param {string} value The initial value to use for authentication. | 446 * @param {string} value The initial value to use for authentication. |
| 427 */ | 447 */ |
| 428 setAuthType: function(username, authType, value) { | 448 setAuthType: function(username, authType, value) { |
| 429 $('pod-row').setAuthType(username, authType, value); | 449 $('pod-row').setAuthType(username, authType, value); |
| 430 }, | 450 }, |
| 431 | 451 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 * @param {string} userID The user ID of the public session | 497 * @param {string} userID The user ID of the public session |
| 478 * @param {string} locale The locale to which this list of keyboard layouts | 498 * @param {string} locale The locale to which this list of keyboard layouts |
| 479 * applies | 499 * applies |
| 480 * @param {!Object} list List of available keyboard layouts | 500 * @param {!Object} list List of available keyboard layouts |
| 481 */ | 501 */ |
| 482 setPublicSessionKeyboardLayouts: function(userID, locale, list) { | 502 setPublicSessionKeyboardLayouts: function(userID, locale, list) { |
| 483 $('pod-row').setPublicSessionKeyboardLayouts(userID, locale, list); | 503 $('pod-row').setPublicSessionKeyboardLayouts(userID, locale, list); |
| 484 } | 504 } |
| 485 }; | 505 }; |
| 486 }); | 506 }); |
| OLD | NEW |