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

Side by Side Diff: ui/login/account_picker/user_pod_row.js

Issue 2652793003: Add login screen locale and input method device policies (Closed)
Patch Set: Rebase. Created 3 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 unified diff | Download patch
OLDNEW
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 User pod row implementation. 6 * @fileoverview User pod row implementation.
7 */ 7 */
8 8
9 cr.define('login', function() { 9 cr.define('login', function() {
10 /** 10 /**
(...skipping 3329 matching lines...) Expand 10 before | Expand all | Expand 10 after
3340 // is false, it doesn't focus on the password input box by default. 3340 // is false, it doesn't focus on the password input box by default.
3341 podToFocus.focus(); 3341 podToFocus.focus();
3342 } 3342 }
3343 3343
3344 // focusPod() automatically loads wallpaper 3344 // focusPod() automatically loads wallpaper
3345 if (!podToFocus.user.isApp) 3345 if (!podToFocus.user.isApp)
3346 chrome.send('focusPod', [podToFocus.user.username]); 3346 chrome.send('focusPod', [podToFocus.user.username]);
3347 this.firstShown_ = false; 3347 this.firstShown_ = false;
3348 this.lastFocusedPod_ = podToFocus; 3348 this.lastFocusedPod_ = podToFocus;
3349 this.scrollFocusedPodIntoView(); 3349 this.scrollFocusedPodIntoView();
3350 } else {
3351 chrome.send('noPodFocused');
3350 } 3352 }
3351 this.insideFocusPod_ = false; 3353 this.insideFocusPod_ = false;
3352 }, 3354 },
3353 3355
3354 /** 3356 /**
3355 * Resets wallpaper to the last active user's wallpaper, if any. 3357 * Resets wallpaper to the last active user's wallpaper, if any.
3356 */ 3358 */
3357 loadLastWallpaper: function() { 3359 loadLastWallpaper: function() {
3358 if (this.lastFocusedPod_ && !this.lastFocusedPod_.user.isApp) 3360 if (this.lastFocusedPod_ && !this.lastFocusedPod_.user.isApp)
3359 chrome.send('loadWallpaper', [this.lastFocusedPod_.user.username]); 3361 chrome.send('loadWallpaper', [this.lastFocusedPod_.user.username]);
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
3729 if (pod && pod.multiProfilesPolicyApplied) { 3731 if (pod && pod.multiProfilesPolicyApplied) {
3730 pod.userTypeBubbleElement.classList.remove('bubble-shown'); 3732 pod.userTypeBubbleElement.classList.remove('bubble-shown');
3731 } 3733 }
3732 } 3734 }
3733 }; 3735 };
3734 3736
3735 return { 3737 return {
3736 PodRow: PodRow 3738 PodRow: PodRow
3737 }; 3739 };
3738 }); 3740 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698