Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(147)

Side by Side Diff: ui/login/account_picker/screen_account_picker.js

Issue 426063005: Allow recommended locales to be set for public sessions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 19 matching lines...) Expand all
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 'setPublicSessionDisplayName',
40 'setPublicSessionLocales',
40 'setPublicSessionKeyboardLayouts', 41 'setPublicSessionKeyboardLayouts',
41 ], 42 ],
42 43
43 preferredWidth_: 0, 44 preferredWidth_: 0,
44 preferredHeight_: 0, 45 preferredHeight_: 0,
45 46
46 // Whether this screen is shown for the first time. 47 // Whether this screen is shown for the first time.
47 firstShown_: true, 48 firstShown_: true,
48 49
49 /** @override */ 50 /** @override */
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 /** 314 /**
314 * Updates the display name shown on a public session pod. 315 * Updates the display name shown on a public session pod.
315 * @param {string} userID The user ID of the public session 316 * @param {string} userID The user ID of the public session
316 * @param {string} displayName The new display name 317 * @param {string} displayName The new display name
317 */ 318 */
318 setPublicSessionDisplayName: function(userID, displayName) { 319 setPublicSessionDisplayName: function(userID, displayName) {
319 $('pod-row').setPublicSessionDisplayName(userID, displayName); 320 $('pod-row').setPublicSessionDisplayName(userID, displayName);
320 }, 321 },
321 322
322 /** 323 /**
324 * Updates the list of locales available for a public session.
325 * @param {string} userID The user ID of the public session
326 * @param {!Object} locales The list of available locales
327 * @param {string} defaultLocale The locale to select by default
328 * @param {boolean} multipleRecommendedLocales Whether |locales| contains
329 * two or more recommended locales
330 */
331 setPublicSessionLocales: function(userID,
332 locales,
333 defaultLocale,
334 multipleRecommendedLocales) {
335 $('pod-row').setPublicSessionLocales(userID,
336 locales,
337 defaultLocale,
338 multipleRecommendedLocales);
339 },
340
341 /**
323 * Updates the list of available keyboard layouts for a public session pod. 342 * Updates the list of available keyboard layouts for a public session pod.
324 * @param {string} userID The user ID of the public session 343 * @param {string} userID The user ID of the public session
344 * @param {string} locale The locale to which this list of keyboard layouts
345 * applies
325 * @param {!Object} list List of available keyboard layouts 346 * @param {!Object} list List of available keyboard layouts
326 */ 347 */
327 setPublicSessionKeyboardLayouts: function(userID, list) { 348 setPublicSessionKeyboardLayouts: function(userID, locale, list) {
328 $('pod-row').setPublicSessionKeyboardLayouts(userID, list); 349 $('pod-row').setPublicSessionKeyboardLayouts(userID, locale, list);
329 } 350 }
330 }; 351 };
331 }); 352 });
332 353
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698