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 13 matching lines...) Expand all Loading... |
24 'updateUserImage', | 24 'updateUserImage', |
25 'setCapsLockState', | 25 'setCapsLockState', |
26 'forceLockedUserPodFocus', | 26 'forceLockedUserPodFocus', |
27 'removeUser', | 27 'removeUser', |
28 'showBannerMessage', | 28 'showBannerMessage', |
29 'showUserPodCustomIcon', | 29 'showUserPodCustomIcon', |
30 'hideUserPodCustomIcon', | 30 'hideUserPodCustomIcon', |
31 'setAuthType', | 31 'setAuthType', |
32 'showEasyUnlockBubble', | 32 'showEasyUnlockBubble', |
33 'setPublicSessionDisplayName', | 33 'setPublicSessionDisplayName', |
34 'setPublicSessionLocales', | |
35 'setPublicSessionKeyboardLayouts', | 34 'setPublicSessionKeyboardLayouts', |
36 ], | 35 ], |
37 | 36 |
38 preferredWidth_: 0, | 37 preferredWidth_: 0, |
39 preferredHeight_: 0, | 38 preferredHeight_: 0, |
40 | 39 |
41 // Whether this screen is shown for the first time. | 40 // Whether this screen is shown for the first time. |
42 firstShown_: true, | 41 firstShown_: true, |
43 | 42 |
44 /** @override */ | 43 /** @override */ |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 /** | 307 /** |
309 * Updates the display name shown on a public session pod. | 308 * Updates the display name shown on a public session pod. |
310 * @param {string} userID The user ID of the public session | 309 * @param {string} userID The user ID of the public session |
311 * @param {string} displayName The new display name | 310 * @param {string} displayName The new display name |
312 */ | 311 */ |
313 setPublicSessionDisplayName: function(userID, displayName) { | 312 setPublicSessionDisplayName: function(userID, displayName) { |
314 $('pod-row').setPublicSessionDisplayName(userID, displayName); | 313 $('pod-row').setPublicSessionDisplayName(userID, displayName); |
315 }, | 314 }, |
316 | 315 |
317 /** | 316 /** |
318 * Updates the list of locales available for a public session. | |
319 * @param {string} userID The user ID of the public session | |
320 * @param {!Object} locales The list of available locales | |
321 * @param {string} defaultLocale The locale to select by default | |
322 * @param {boolean} multipleRecommendedLocales Whether |locales| contains | |
323 * two or more recommended locales | |
324 */ | |
325 setPublicSessionLocales: function(userID, | |
326 locales, | |
327 defaultLocale, | |
328 multipleRecommendedLocales) { | |
329 $('pod-row').setPublicSessionLocales(userID, | |
330 locales, | |
331 defaultLocale, | |
332 multipleRecommendedLocales); | |
333 }, | |
334 | |
335 /** | |
336 * Updates the list of available keyboard layouts for a public session pod. | 317 * Updates the list of available keyboard layouts for a public session pod. |
337 * @param {string} userID The user ID of the public session | 318 * @param {string} userID The user ID of the public session |
338 * @param {string} locale The locale to which this list of keyboard layouts | |
339 * applies | |
340 * @param {!Object} list List of available keyboard layouts | 319 * @param {!Object} list List of available keyboard layouts |
341 */ | 320 */ |
342 setPublicSessionKeyboardLayouts: function(userID, locale, list) { | 321 setPublicSessionKeyboardLayouts: function(userID, list) { |
343 $('pod-row').setPublicSessionKeyboardLayouts(userID, locale, list); | 322 $('pod-row').setPublicSessionKeyboardLayouts(userID, list); |
344 } | 323 } |
345 }; | 324 }; |
346 }); | 325 }); |
347 | 326 |
OLD | NEW |