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

Unified Diff: chrome/browser/resources/pdf/elements/viewer-password-screen/viewer-password-screen.js

Issue 2915773003: PDF Plugin: Add compile targets for a few more files. (Closed)
Patch Set: Addressing comments. Created 3 years, 7 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 | « chrome/browser/resources/pdf/elements/viewer-password-screen/compiled_resources2.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/pdf/elements/viewer-password-screen/viewer-password-screen.js
diff --git a/chrome/browser/resources/pdf/elements/viewer-password-screen/viewer-password-screen.js b/chrome/browser/resources/pdf/elements/viewer-password-screen/viewer-password-screen.js
index 0ca52a64a8ecb2283638db87b83c0554566fb041..ef1f1284a9fadc7e52ff9b99a7cb05a4f5b7fdf6 100644
--- a/chrome/browser/resources/pdf/elements/viewer-password-screen/viewer-password-screen.js
+++ b/chrome/browser/resources/pdf/elements/viewer-password-screen/viewer-password-screen.js
@@ -25,18 +25,20 @@ Polymer({
},
deny: function() {
- this.$.password.disabled = false;
+ var password = /** @type {!PaperInputElement} */ (this.$.password);
+ password.disabled = false;
this.$.submit.disabled = false;
this.invalid = true;
- this.$.password.focus();
- this.$.password.inputElement.select();
+ password.focus();
+ password.inputElement.select();
},
submit: function() {
- if (this.$.password.value.length == 0)
+ var password = /** @type {!PaperInputElement} */ (this.$.password);
+ if (password.value.length == 0)
return;
- this.$.password.disabled = true;
+ password.disabled = true;
this.$.submit.disabled = true;
- this.fire('password-submitted', {password: this.$.password.value});
+ this.fire('password-submitted', {password: password.value});
},
});
« no previous file with comments | « chrome/browser/resources/pdf/elements/viewer-password-screen/compiled_resources2.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698