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

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

Issue 2132753002: When pin-keyboard comes up the input element is of focus. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Rebased. Created 4 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 unified diff | Download patch
« no previous file with comments | « ui/login/account_picker/user_pod_row.css ('k') | ui/login/screen_container.css » ('j') | 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 1119 matching lines...) Expand 10 before | Expand all | Expand 10 after
1130 1130
1131 setPinVisibility: function(visible) { 1131 setPinVisibility: function(visible) {
1132 var elements = [this, this.authElement, this.imageElement, 1132 var elements = [this, this.authElement, this.imageElement,
1133 this.signInElement, this.pinContainer]; 1133 this.signInElement, this.pinContainer];
1134 1134
1135 for (var idx = 0; idx < elements.length; idx++) { 1135 for (var idx = 0; idx < elements.length; idx++) {
1136 var currentElement = elements[idx]; 1136 var currentElement = elements[idx];
1137 currentElement.classList.toggle('pin-enabled', visible); 1137 currentElement.classList.toggle('pin-enabled', visible);
1138 currentElement.classList.toggle('pin-disabled', !visible); 1138 currentElement.classList.toggle('pin-disabled', !visible);
1139 } 1139 }
1140
1141 // Set the focus to the input element after showing/hiding pin keyboard.
1142 if (visible)
1143 this.pinKeyboard.focus();
1144 else
1145 this.mainInput.focus();
1140 }, 1146 },
1141 1147
1142 setUserPodIconType: function(userTypeClass) { 1148 setUserPodIconType: function(userTypeClass) {
1143 this.userTypeIconAreaElement.classList.add(userTypeClass); 1149 this.userTypeIconAreaElement.classList.add(userTypeClass);
1144 this.userTypeIconAreaElement.hidden = false; 1150 this.userTypeIconAreaElement.hidden = false;
1145 }, 1151 },
1146 1152
1147 /** 1153 /**
1148 * The user that this pod represents. 1154 * The user that this pod represents.
1149 * @type {!Object} 1155 * @type {!Object}
(...skipping 2347 matching lines...) Expand 10 before | Expand all | Expand 10 after
3497 if (pod && pod.multiProfilesPolicyApplied) { 3503 if (pod && pod.multiProfilesPolicyApplied) {
3498 pod.userTypeBubbleElement.classList.remove('bubble-shown'); 3504 pod.userTypeBubbleElement.classList.remove('bubble-shown');
3499 } 3505 }
3500 } 3506 }
3501 }; 3507 };
3502 3508
3503 return { 3509 return {
3504 PodRow: PodRow 3510 PodRow: PodRow
3505 }; 3511 };
3506 }); 3512 });
OLDNEW
« no previous file with comments | « ui/login/account_picker/user_pod_row.css ('k') | ui/login/screen_container.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698