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

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

Issue 398543002: Add language and keyboard layout pickers to public session pods (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Base the list of keyboard layouts offered on the resolved locale, not the selected locale. Created 6 years, 5 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/login/screen_account_picker.js
diff --git a/chrome/browser/resources/login/screen_account_picker.js b/chrome/browser/resources/login/screen_account_picker.js
index 71b7a207ee16fc3ffada20ea9255201dce823f92..3d14d363ccefe5c64b1e5238adc9a21fce7c8b77 100644
--- a/chrome/browser/resources/login/screen_account_picker.js
+++ b/chrome/browser/resources/login/screen_account_picker.js
@@ -36,6 +36,7 @@ login.createScreen('AccountPickerScreen', 'account-picker', function() {
'hideUserPodCustomIcon',
'setAuthType',
'showEasyUnlockBubble',
+ 'setPublicSessionKeyboardLayouts',
],
preferredWidth_: 0,
@@ -306,6 +307,15 @@ login.createScreen('AccountPickerScreen', 'account-picker', function() {
*/
showEasyUnlockBubble: function() {
$('pod-row').showEasyUnlockBubble();
+ },
+
+ /**
+ * Updates the list of available keyboard layouts for a public session pod.
+ * @param {string} userID The user ID of the public session
+ * @param {!Object} list List of available keyboard layouts
+ */
+ setPublicSessionKeyboardLayouts: function(userID, list) {
+ $('pod-row').setPublicSessionKeyboardLayouts(userID, list);
}
};
});
« no previous file with comments | « chrome/browser/chromeos/login/screens/user_selection_screen.cc ('k') | chrome/browser/resources/login/user_pod_row.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698