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

Unified Diff: chrome/browser/resources/chromeos/login/screen_account_picker.js

Issue 158833003: Represent kiosk apps as user pods instead of menu items. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: launch button, added kiosk error bubble Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
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..064064af4ed33c25572440a481bc181bab020a11 100644
--- a/chrome/browser/resources/chromeos/login/screen_account_picker.js
+++ b/chrome/browser/resources/chromeos/login/screen_account_picker.js
@@ -23,6 +23,8 @@ login.createScreen('AccountPickerScreen', 'account-picker', function() {
return {
EXTERNAL_API: [
'loadUsers',
+ 'setApps',
+ 'showAppError',
'updateUserImage',
'forceOnlineSignin',
'setCapsLockState',
@@ -182,6 +184,29 @@ login.createScreen('AccountPickerScreen', 'account-picker', function() {
},
/**
+ * 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.
*/

Powered by Google App Engine
This is Rietveld 408576698