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', |
34 'setPublicSessionKeyboardLayouts', | 35 'setPublicSessionKeyboardLayouts', |
35 ], | 36 ], |
36 | 37 |
37 preferredWidth_: 0, | 38 preferredWidth_: 0, |
38 preferredHeight_: 0, | 39 preferredHeight_: 0, |
39 | 40 |
40 // Whether this screen is shown for the first time. | 41 // Whether this screen is shown for the first time. |
41 firstShown_: true, | 42 firstShown_: true, |
42 | 43 |
43 /** @override */ | 44 /** @override */ |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 /** | 308 /** |
308 * Updates the display name shown on a public session pod. | 309 * Updates the display name shown on a public session pod. |
309 * @param {string} userID The user ID of the public session | 310 * @param {string} userID The user ID of the public session |
310 * @param {string} displayName The new display name | 311 * @param {string} displayName The new display name |
311 */ | 312 */ |
312 setPublicSessionDisplayName: function(userID, displayName) { | 313 setPublicSessionDisplayName: function(userID, displayName) { |
313 $('pod-row').setPublicSessionDisplayName(userID, displayName); | 314 $('pod-row').setPublicSessionDisplayName(userID, displayName); |
314 }, | 315 }, |
315 | 316 |
316 /** | 317 /** |
| 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 /** |
317 * Updates the list of available keyboard layouts for a public session pod. | 336 * Updates the list of available keyboard layouts for a public session pod. |
318 * @param {string} userID The user ID of the public session | 337 * @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 |
319 * @param {!Object} list List of available keyboard layouts | 340 * @param {!Object} list List of available keyboard layouts |
320 */ | 341 */ |
321 setPublicSessionKeyboardLayouts: function(userID, list) { | 342 setPublicSessionKeyboardLayouts: function(userID, locale, list) { |
322 $('pod-row').setPublicSessionKeyboardLayouts(userID, list); | 343 $('pod-row').setPublicSessionKeyboardLayouts(userID, locale, list); |
323 } | 344 } |
324 }; | 345 }; |
325 }); | 346 }); |
326 | 347 |
OLD | NEW |