| 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 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 * @param {string} user name. | 381 * @param {string} user name. |
| 382 */ | 382 */ |
| 383 removeUser: function(username) { | 383 removeUser: function(username) { |
| 384 $('pod-row').removeUserPod(username); | 384 $('pod-row').removeUserPod(username); |
| 385 }, | 385 }, |
| 386 | 386 |
| 387 /** | 387 /** |
| 388 * Displays a banner containing |message|. If the banner is already present | 388 * Displays a banner containing |message|. If the banner is already present |
| 389 * this function updates the message in the banner. This function is used | 389 * this function updates the message in the banner. This function is used |
| 390 * by the chrome.screenlockPrivate.showMessage API. | 390 * by the chrome.screenlockPrivate.showMessage API. |
| 391 * @param {string} message Text to be displayed | 391 * @param {string} message Text to be displayed or empty to hide the banner. |
| 392 */ | 392 */ |
| 393 showBannerMessage: function(message) { | 393 showBannerMessage: function(message) { |
| 394 var banner = $('signin-banner'); | 394 var banner = $('signin-banner'); |
| 395 banner.textContent = message; | 395 banner.textContent = message; |
| 396 banner.classList.toggle('message-set', true); | 396 banner.classList.toggle('message-set', !!message); |
| 397 }, | 397 }, |
| 398 | 398 |
| 399 /** | 399 /** |
| 400 * Shows a custom icon in the user pod of |username|. This function | 400 * Shows a custom icon in the user pod of |username|. This function |
| 401 * is used by the chrome.screenlockPrivate API. | 401 * is used by the chrome.screenlockPrivate API. |
| 402 * @param {string} username Username of pod to add button | 402 * @param {string} username Username of pod to add button |
| 403 * @param {!{id: !string, | 403 * @param {!{id: !string, |
| 404 * hardlockOnClick: boolean, | 404 * hardlockOnClick: boolean, |
| 405 * isTrialRun: boolean, | 405 * isTrialRun: boolean, |
| 406 * tooltip: ({text: string, autoshow: boolean} | undefined)}} icon | 406 * tooltip: ({text: string, autoshow: boolean} | undefined)}} icon |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 * @param {string} userID The user ID of the public session | 496 * @param {string} userID The user ID of the public session |
| 497 * @param {string} locale The locale to which this list of keyboard layouts | 497 * @param {string} locale The locale to which this list of keyboard layouts |
| 498 * applies | 498 * applies |
| 499 * @param {!Object} list List of available keyboard layouts | 499 * @param {!Object} list List of available keyboard layouts |
| 500 */ | 500 */ |
| 501 setPublicSessionKeyboardLayouts: function(userID, locale, list) { | 501 setPublicSessionKeyboardLayouts: function(userID, locale, list) { |
| 502 $('pod-row').setPublicSessionKeyboardLayouts(userID, locale, list); | 502 $('pod-row').setPublicSessionKeyboardLayouts(userID, locale, list); |
| 503 } | 503 } |
| 504 }; | 504 }; |
| 505 }); | 505 }); |
| OLD | NEW |