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

Side by Side Diff: chrome/browser/resources/chromeos/login/gaia_password_changed.js

Issue 1115993002: ChromeOS Gaia: SAML password confirmation dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 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 unified diff | Download patch
OLDNEW
1 /* Copyright 2015 The Chromium Authors. All rights reserved. 1 /* Copyright 2015 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 Polymer('gaia-password-changed', { 6 Polymer('gaia-password-changed', {
7 invalidate: function() { 7 invalidate: function() {
8 this.$.oldPasswordInput.setValid(false); 8 this.$.oldPasswordInput.setValid(false);
9 }, 9 },
10 10
(...skipping 18 matching lines...) Expand all
29 } 29 }
30 }.bind(this)); 30 }.bind(this));
31 }, 31 },
32 32
33 focus: function() { 33 focus: function() {
34 if (this.$.animatedPages.selected == 0) 34 if (this.$.animatedPages.selected == 0)
35 this.$.oldPasswordInput.focus(); 35 this.$.oldPasswordInput.focus();
36 }, 36 },
37 37
38 set disabled(value) { 38 set disabled(value) {
39 var controls = this.$.animatedPages.querySelectorAll( 39 this.$.oldPasswordInput.disabled = value;
40 ':host /deep/ .footer /deep/ [role="button"]');
41 for (var i = 0, control; control = controls[i]; ++i) {
42 control.disabled = value;
43 }
44 }, 40 },
45 41
46 onForgotPasswordClicked: function() { 42 onForgotPasswordClicked: function() {
47 this.clearPassword(); 43 this.clearPassword();
48 this.$.animatedPages.selected += 1; 44 this.$.animatedPages.selected += 1;
49 }, 45 },
50 46
51 onTryAgainClicked: function() { 47 onTryAgainClicked: function() {
52 this.$.oldPasswordInput.setValid(true); 48 this.$.oldPasswordInput.setValid(true);
53 this.$.animatedPages.selected -= 1; 49 this.$.animatedPages.selected -= 1;
(...skipping 12 matching lines...) Expand all
66 this.$.closeButton.hidden = true; 62 this.$.closeButton.hidden = true;
67 this.$.animatedPages.selected = 2; 63 this.$.animatedPages.selected = 2;
68 this.fire('proceedAnyway'); 64 this.fire('proceedAnyway');
69 }, 65 },
70 66
71 onClose: function() { 67 onClose: function() {
72 this.disabled = true; 68 this.disabled = true;
73 this.fire('cancel'); 69 this.fire('cancel');
74 }, 70 },
75 }); 71 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698