| 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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 banner.textContent = message; | 283 banner.textContent = message; |
| 284 banner.classList.toggle('message-set', true); | 284 banner.classList.toggle('message-set', true); |
| 285 }, | 285 }, |
| 286 | 286 |
| 287 /** | 287 /** |
| 288 * Shows a custom icon in the user pod of |username|. This function | 288 * Shows a custom icon in the user pod of |username|. This function |
| 289 * is used by the chrome.screenlockPrivate API. | 289 * is used by the chrome.screenlockPrivate API. |
| 290 * @param {string} username Username of pod to add button | 290 * @param {string} username Username of pod to add button |
| 291 * @param {!{id: !string, | 291 * @param {!{id: !string, |
| 292 * hardlockOnClick: boolean, | 292 * hardlockOnClick: boolean, |
| 293 * isTrialRun: boolean, |
| 293 * tooltip: ({text: string, autoshow: boolean} | undefined)}} icon | 294 * tooltip: ({text: string, autoshow: boolean} | undefined)}} icon |
| 294 * The icon parameters. | 295 * The icon parameters. |
| 295 */ | 296 */ |
| 296 showUserPodCustomIcon: function(username, icon) { | 297 showUserPodCustomIcon: function(username, icon) { |
| 297 $('pod-row').showUserPodCustomIcon(username, icon); | 298 $('pod-row').showUserPodCustomIcon(username, icon); |
| 298 }, | 299 }, |
| 299 | 300 |
| 300 /** | 301 /** |
| 301 * Hides the custom icon in the user pod of |username| added by | 302 * Hides the custom icon in the user pod of |username| added by |
| 302 * showUserPodCustomIcon(). This function is used by the | 303 * showUserPodCustomIcon(). This function is used by the |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 * @param {string} userID The user ID of the public session | 359 * @param {string} userID The user ID of the public session |
| 359 * @param {string} locale The locale to which this list of keyboard layouts | 360 * @param {string} locale The locale to which this list of keyboard layouts |
| 360 * applies | 361 * applies |
| 361 * @param {!Object} list List of available keyboard layouts | 362 * @param {!Object} list List of available keyboard layouts |
| 362 */ | 363 */ |
| 363 setPublicSessionKeyboardLayouts: function(userID, locale, list) { | 364 setPublicSessionKeyboardLayouts: function(userID, locale, list) { |
| 364 $('pod-row').setPublicSessionKeyboardLayouts(userID, locale, list); | 365 $('pod-row').setPublicSessionKeyboardLayouts(userID, locale, list); |
| 365 } | 366 } |
| 366 }; | 367 }; |
| 367 }); | 368 }); |
| OLD | NEW |