| 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 18 matching lines...) Expand all Loading... |
| 29 'showAppError', | 29 'showAppError', |
| 30 'updateUserImage', | 30 'updateUserImage', |
| 31 'setCapsLockState', | 31 'setCapsLockState', |
| 32 'forceLockedUserPodFocus', | 32 'forceLockedUserPodFocus', |
| 33 'removeUser', | 33 'removeUser', |
| 34 'showBannerMessage', | 34 'showBannerMessage', |
| 35 'showUserPodCustomIcon', | 35 'showUserPodCustomIcon', |
| 36 'hideUserPodCustomIcon', | 36 'hideUserPodCustomIcon', |
| 37 'setAuthType', | 37 'setAuthType', |
| 38 'showEasyUnlockBubble', | 38 'showEasyUnlockBubble', |
| 39 'setPublicSessionDisplayName', |
| 39 'setPublicSessionKeyboardLayouts', | 40 'setPublicSessionKeyboardLayouts', |
| 40 ], | 41 ], |
| 41 | 42 |
| 42 preferredWidth_: 0, | 43 preferredWidth_: 0, |
| 43 preferredHeight_: 0, | 44 preferredHeight_: 0, |
| 44 | 45 |
| 45 // Whether this screen is shown for the first time. | 46 // Whether this screen is shown for the first time. |
| 46 firstShown_: true, | 47 firstShown_: true, |
| 47 | 48 |
| 48 /** @override */ | 49 /** @override */ |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 }, | 304 }, |
| 304 | 305 |
| 305 /** | 306 /** |
| 306 * Shows a tooltip bubble explaining Easy Unlock. | 307 * Shows a tooltip bubble explaining Easy Unlock. |
| 307 */ | 308 */ |
| 308 showEasyUnlockBubble: function() { | 309 showEasyUnlockBubble: function() { |
| 309 $('pod-row').showEasyUnlockBubble(); | 310 $('pod-row').showEasyUnlockBubble(); |
| 310 }, | 311 }, |
| 311 | 312 |
| 312 /** | 313 /** |
| 314 * Updates the display name shown on a public session pod. |
| 315 * @param {string} userID The user ID of the public session |
| 316 * @param {string} displayName The new display name |
| 317 */ |
| 318 setPublicSessionDisplayName: function(userID, displayName) { |
| 319 $('pod-row').setPublicSessionDisplayName(userID, displayName); |
| 320 }, |
| 321 |
| 322 /** |
| 313 * Updates the list of available keyboard layouts for a public session pod. | 323 * Updates the list of available keyboard layouts for a public session pod. |
| 314 * @param {string} userID The user ID of the public session | 324 * @param {string} userID The user ID of the public session |
| 315 * @param {!Object} list List of available keyboard layouts | 325 * @param {!Object} list List of available keyboard layouts |
| 316 */ | 326 */ |
| 317 setPublicSessionKeyboardLayouts: function(userID, list) { | 327 setPublicSessionKeyboardLayouts: function(userID, list) { |
| 318 $('pod-row').setPublicSessionKeyboardLayouts(userID, list); | 328 $('pod-row').setPublicSessionKeyboardLayouts(userID, list); |
| 319 } | 329 } |
| 320 }; | 330 }; |
| 321 }); | 331 }); |
| 322 | 332 |
| OLD | NEW |