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

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

Issue 2369923002: Fix clicks on Public Session login page after OOBE (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 753 matching lines...) Expand 10 before | Expand all | Expand 10 after
764 this.imageElement.addEventListener('load', 764 this.imageElement.addEventListener('load',
765 this.parentNode.handlePodImageLoad.bind(this.parentNode, this)); 765 this.parentNode.handlePodImageLoad.bind(this.parentNode, this));
766 766
767 var initialAuthType = this.user.initialAuthType || 767 var initialAuthType = this.user.initialAuthType ||
768 AUTH_TYPE.OFFLINE_PASSWORD; 768 AUTH_TYPE.OFFLINE_PASSWORD;
769 this.setAuthType(initialAuthType, null); 769 this.setAuthType(initialAuthType, null);
770 770
771 this.userClickAuthAllowed_ = false; 771 this.userClickAuthAllowed_ = false;
772 772
773 // Lazy load the assets needed for the polymer submit button. 773 // Lazy load the assets needed for the polymer submit button.
774 if (cr.isChromeOS && !cr.ui.login.ResourceLoader.alreadyLoadedAssets( 774 var isLockScreen = (Oobe.getInstance().displayType == DISPLAY_TYPE.LOCK);
775 if (cr.isChromeOS && isLockScreen &&
776 !cr.ui.login.ResourceLoader.alreadyLoadedAssets(
775 'custom-elements-user-pod')) { 777 'custom-elements-user-pod')) {
776 cr.ui.login.ResourceLoader.registerAssets({ 778 cr.ui.login.ResourceLoader.registerAssets({
777 id: 'custom-elements-user-pod', 779 id: 'custom-elements-user-pod',
778 html: [{ url: 'custom_elements_user_pod.html' }] 780 html: [{ url: 'custom_elements_user_pod.html' }]
779 }); 781 });
780 cr.ui.login.ResourceLoader.loadAssetsOnIdle('custom-elements-user-pod'); 782 cr.ui.login.ResourceLoader.loadAssetsOnIdle('custom-elements-user-pod');
781 } 783 }
782 }, 784 },
783 785
784 /** 786 /**
(...skipping 2454 matching lines...) Expand 10 before | Expand all | Expand 10 after
3239 else 3241 else
3240 pod.classList.remove('faded'); 3242 pod.classList.remove('faded');
3241 pod.reset(false); 3243 pod.reset(false);
3242 } 3244 }
3243 } 3245 }
3244 3246
3245 // Clear any error messages for previous pod. 3247 // Clear any error messages for previous pod.
3246 if (!this.isFocused(podToFocus)) 3248 if (!this.isFocused(podToFocus))
3247 Oobe.clearErrors(); 3249 Oobe.clearErrors();
3248 3250
3249 var hadFocus = !!this.focusedPod_;
3250 this.focusedPod_ = podToFocus; 3251 this.focusedPod_ = podToFocus;
3251 if (podToFocus) { 3252 if (podToFocus) {
3252 // Only show the keyboard if it is fully loaded. 3253 // Only show the keyboard if it is fully loaded.
3253 if (podToFocus.isPinReady()) 3254 if (podToFocus.isPinReady())
3254 podToFocus.setPinVisibility(true); 3255 podToFocus.setPinVisibility(true);
3255 podToFocus.classList.remove('faded'); 3256 podToFocus.classList.remove('faded');
3256 podToFocus.classList.add('focused'); 3257 podToFocus.classList.add('focused');
3257 if (!podToFocus.multiProfilesPolicyApplied) { 3258 if (!podToFocus.multiProfilesPolicyApplied) {
3258 podToFocus.classList.toggle('signing-in', false); 3259 podToFocus.classList.toggle('signing-in', false);
3259 if (!opt_skipInputFocus) 3260 if (!opt_skipInputFocus)
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
3650 if (pod && pod.multiProfilesPolicyApplied) { 3651 if (pod && pod.multiProfilesPolicyApplied) {
3651 pod.userTypeBubbleElement.classList.remove('bubble-shown'); 3652 pod.userTypeBubbleElement.classList.remove('bubble-shown');
3652 } 3653 }
3653 } 3654 }
3654 }; 3655 };
3655 3656
3656 return { 3657 return {
3657 PodRow: PodRow 3658 PodRow: PodRow
3658 }; 3659 };
3659 }); 3660 });
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698