Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 cr.define('options', function() { | 5 cr.define('options', function() { |
| 6 const OptionsPage = options.OptionsPage; | 6 const OptionsPage = options.OptionsPage; |
| 7 | 7 |
| 8 /** | 8 /** |
| 9 * CertificateBackupOverlay class | 9 * CertificateBackupOverlay class |
| 10 * Encapsulated handling of the 'enter backup password' overlay page. | 10 * Encapsulated handling of the 'enter backup password' overlay page. |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 23 | 23 |
| 24 /** | 24 /** |
| 25 * Initializes the page. | 25 * Initializes the page. |
| 26 */ | 26 */ |
| 27 initializePage: function() { | 27 initializePage: function() { |
| 28 OptionsPage.prototype.initializePage.call(this); | 28 OptionsPage.prototype.initializePage.call(this); |
| 29 | 29 |
| 30 var self = this; | 30 var self = this; |
| 31 $('certificateBackupCancelButton').onclick = function(event) { | 31 $('certificateBackupCancelButton').onclick = function(event) { |
| 32 self.cancelBackup_(); | 32 self.cancelBackup_(); |
| 33 } | 33 }; |
| 34 $('certificateBackupOkButton').onclick = function(event) { | 34 $('certificateBackupOkButton').onclick = function(event) { |
| 35 self.finishBackup_(); | 35 self.finishBackup_(); |
| 36 } | 36 }; |
| 37 $('certificateBackupPassword').oninput = | 37 $('certificateBackupPassword').oninput = |
|
Tyler Breisacher (Chromium)
2012/01/25 07:01:14
While we're here, this looks like an incomplete st
Dan Beam
2012/01/25 07:14:52
I'll add jhawkins as I need a committer and OWNERS
James Hawkins
2012/01/26 01:38:04
Indentation is required, so I'd prefer a temp var
Dan Beam
2012/01/26 04:00:36
Done.
| |
| 38 $('certificateBackupPassword2').oninput = function(event) { | 38 $('certificateBackupPassword2').oninput = function(event) { |
| 39 self.comparePasswords_(); | 39 self.comparePasswords_(); |
| 40 } | 40 }; |
| 41 | 41 |
| 42 self.clearInputFields_(); | 42 self.clearInputFields_(); |
| 43 }, | 43 }, |
| 44 | 44 |
| 45 /** | 45 /** |
| 46 * Clears any uncommitted input, and dismisses the overlay. | 46 * Clears any uncommitted input, and dismisses the overlay. |
| 47 * @private | 47 * @private |
| 48 */ | 48 */ |
| 49 dismissOverlay_: function() { | 49 dismissOverlay_: function() { |
| 50 this.clearInputFields_(); | 50 this.clearInputFields_(); |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 107 | 107 |
| 108 CertificateBackupOverlay.dismiss = function() { | 108 CertificateBackupOverlay.dismiss = function() { |
| 109 CertificateBackupOverlay.getInstance().dismissOverlay_(); | 109 CertificateBackupOverlay.getInstance().dismissOverlay_(); |
| 110 }; | 110 }; |
| 111 | 111 |
| 112 // Export | 112 // Export |
| 113 return { | 113 return { |
| 114 CertificateBackupOverlay: CertificateBackupOverlay | 114 CertificateBackupOverlay: CertificateBackupOverlay |
| 115 }; | 115 }; |
| 116 }); | 116 }); |
| OLD | NEW |