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

Unified Diff: ui/login/account_picker/user_pod_row.js

Issue 2027683003: Pin keyboard moved to under the user profile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Fixed patch set 2 errors. Created 4 years, 6 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: ui/login/account_picker/user_pod_row.js
diff --git a/ui/login/account_picker/user_pod_row.js b/ui/login/account_picker/user_pod_row.js
index ffc792b553cf2a69fc9a6dd0c2c5356761bbd2e8..bfdb3b2e7a324df2dc53b8b1ef391d2149b97d65 100644
--- a/ui/login/account_picker/user_pod_row.js
+++ b/ui/login/account_picker/user_pod_row.js
@@ -735,13 +735,6 @@ cr.define('login', function() {
this.actionBoxRemoveUserWarningButtonElement.addEventListener('keydown',
this.handleRemoveUserConfirmationKeyDown_.bind(this));
- var pinKeyboard = $('pin-keyboard');
- // The pin keyboard is not present on the md user manager.
- if (pinKeyboard) {
- pinKeyboard.addEventListener('submit',
- this.handlePinSubmitted_.bind(this));
- }
-
var customIcon = this.customIconElement;
customIcon.parentNode.replaceChild(new UserPodCustomIcon(), customIcon);
},
@@ -755,6 +748,11 @@ cr.define('login', function() {
this.passwordElement.addEventListener('keypress',
this.handlePasswordKeyPress_.bind(this));
+ if (this.pinKeyboard) {
+ this.pinKeyboard.addEventListener('submit',
+ this.handlePinSubmitted_.bind(this));
+ }
+
this.imageElement.addEventListener('load',
this.parentNode.handlePodImageLoad.bind(this.parentNode, this));
@@ -837,6 +835,14 @@ cr.define('login', function() {
},
/**
+ * Gets the authorization element of the pod.
+ * @type {!HTMLDivElement}
+ */
+ get authElement() {
+ return this.querySelector('.auth-container');
+ },
+
+ /**
* Gets image element.
* @type {!HTMLImageElement}
*/
@@ -886,6 +892,14 @@ cr.define('login', function() {
},
/**
+ * Gets the pin-keyboard of the pod.
+ * @type {!HTMLElement}
+ */
+ get pinKeyboard() {
+ return this.querySelector('pin-keyboard');
+ },
+
+ /**
* Gets user online sign in hint element.
* @type {!HTMLDivElement}
*/
@@ -894,6 +908,14 @@ cr.define('login', function() {
},
/**
+ * Gets the signed in indicator of the pod.
+ * @type {!HTMLDivElement}
+ */
+ get signInElement() {
+ return this.querySelector('.signed-in-indicator');
+ },
+
+ /**
* Gets the container holding the launch app button.
* @type {!HTMLButtonElement}
*/

Powered by Google App Engine
This is Rietveld 408576698