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

Unified Diff: chrome/browser/resources/chromeos/quick_unlock/pin_keyboard.js

Issue 2222583002: Lock screen pin keyboard ui upgrades. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Fixed patch set 1 errors. Created 4 years, 4 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: chrome/browser/resources/chromeos/quick_unlock/pin_keyboard.js
diff --git a/chrome/browser/resources/chromeos/quick_unlock/pin_keyboard.js b/chrome/browser/resources/chromeos/quick_unlock/pin_keyboard.js
index 9b9ba5dad8b5dc2ba8c528ddea38566061751d5e..b99aae3fe5155f71d002603e191c44a2a4506f81 100644
--- a/chrome/browser/resources/chromeos/quick_unlock/pin_keyboard.js
+++ b/chrome/browser/resources/chromeos/quick_unlock/pin_keyboard.js
@@ -127,15 +127,24 @@ Polymer({
},
/**
- * Changes the color of the submit button if PIN is ready.
+ * Changes the color of input text if it is not empty.
jdufault 2016/08/08 21:12:42 of the* input
sammiequon 2016/08/08 23:36:12 Done.
* @param {string} value
* @private
*/
- getSubmitClass_: function(value) {
+ getPasswordReadyClass_: function(value) {
return value.length > 0 ? 'ready-background' : '';
},
/**
+ * Disables the submit and backspace button if nothing is entered.
+ * @param {string} value
+ * @private
+ */
+ hasNoInput_: function(value) {
+ return value.length == 0;
+ },
+
+ /**
* Computes whether the input type for the pin input should be password or
* numerical.
* @param {boolean} enablePassword
@@ -178,7 +187,7 @@ Polymer({
* @param {boolean} submitEnabled
* @private
*/
- getSubmitHiddenClass_: function(submitEnabled) {
+ getSubmitClass_: function(submitEnabled) {
return submitEnabled ? '' : 'submit-button-hidden';
}
});

Powered by Google App Engine
This is Rietveld 408576698