| Index: chrome/browser/resources/chromeos/login/screen_account_picker.js
|
| diff --git a/chrome/browser/resources/chromeos/login/screen_account_picker.js b/chrome/browser/resources/chromeos/login/screen_account_picker.js
|
| index 267995542d855eda1cf053b1674f8588b79b2fb1..606fd190046f8893aadecd88a549da470e05fec2 100644
|
| --- a/chrome/browser/resources/chromeos/login/screen_account_picker.js
|
| +++ b/chrome/browser/resources/chromeos/login/screen_account_picker.js
|
| @@ -23,6 +23,9 @@ login.createScreen('AccountPickerScreen', 'account-picker', function() {
|
| return {
|
| EXTERNAL_API: [
|
| 'loadUsers',
|
| + 'runAppForTesting',
|
| + 'setApps',
|
| + 'showAppError',
|
| 'updateUserImage',
|
| 'forceOnlineSignin',
|
| 'setCapsLockState',
|
| @@ -182,6 +185,39 @@ login.createScreen('AccountPickerScreen', 'account-picker', function() {
|
| },
|
|
|
| /**
|
| + * Runs app with a given id from the list of loaded apps.
|
| + * @param {!string} app_id of an app to run.
|
| + * @param {boolean=} opt_diagnostic_mode Whether to run the app in
|
| + * diagnostic mode. Default is false.
|
| + */
|
| + runAppForTesting: function(app_id, opt_diagnostic_mode) {
|
| + $('pod-row').findAndRunAppForTesting(app_id, opt_diagnostic_mode);
|
| + },
|
| +
|
| + /**
|
| + * Adds given apps to the pod row.
|
| + * @param {array} apps Array of apps.
|
| + */
|
| + setApps: function(apps) {
|
| + $('pod-row').setApps(apps);
|
| + },
|
| +
|
| + /**
|
| + * Shows the given kiosk app error message.
|
| + * @param {!string} message Error message to show.
|
| + */
|
| + showAppError: function(message) {
|
| + // TODO(nkostylev): Figure out a way to show kiosk app launch error
|
| + // pointing to the kiosk app pod.
|
| + /** @const */ var BUBBLE_PADDING = 12;
|
| + $('bubble').showTextForElement($('pod-row'),
|
| + message,
|
| + cr.ui.Bubble.Attachment.BOTTOM,
|
| + $('pod-row').offsetWidth / 2,
|
| + BUBBLE_PADDING);
|
| + },
|
| +
|
| + /**
|
| * Updates current image of a user.
|
| * @param {string} username User for which to update the image.
|
| */
|
|
|