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

Unified Diff: chrome/browser/resources/chromeos/login/lock.js

Issue 2027683003: Pin keyboard moved to under the user profile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Added a comment. 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
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/login/screen_container.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/chromeos/login/lock.js
diff --git a/chrome/browser/resources/chromeos/login/lock.js b/chrome/browser/resources/chromeos/login/lock.js
index 51e856d1e99e996b1ecfd4abb14500a99d22bd57..a9dde4bdad5f99f2e9976739b03e2c4526022312 100644
--- a/chrome/browser/resources/chromeos/login/lock.js
+++ b/chrome/browser/resources/chromeos/login/lock.js
@@ -8,7 +8,9 @@
<include src="login_shared.js">
-// Asynchronously loads the pin keyboard.
+/**
+ * Asynchronously loads the pin keyboard.
+ */
function showPinKeyboardAsync() {
'use strict';
@@ -25,8 +27,14 @@ function showPinKeyboardAsync() {
});
// Called after polymer has been loaded. Fades the pin element in.
- var onPinLoaded = function(pinContainer) {
- pinContainer.style.opacity = 1;
+ var onPinLoaded = function(pinKeyboard) {
+ var podRow = $('pod-row');
+ podRow.setFocusedPodPinVisibility(true);
+ };
+
+ // The element we want to see if loaded.
+ var getPinKeyboard = function() {
+ return $('pod-row').querySelectorAll('pin-keyboard')[0];
};
// We only load the PIN element when it is actually shown so that lock screen
@@ -36,7 +44,7 @@ function showPinKeyboardAsync() {
// animations. We load the PIN after an idle notification to allow the pod
// fly-in animation to complete without interruption.
cr.ui.login.ResourceLoader.loadAssetsOnIdle('custom-elements', function() {
- cr.ui.login.ResourceLoader.waitUntilLayoutComplete('pin-container',
+ cr.ui.login.ResourceLoader.waitUntilLayoutComplete(getPinKeyboard,
onPinLoaded);
});
}
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/login/screen_container.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698