| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 * CertificateRestoreOverlay class | 9 * CertificateRestoreOverlay class |
| 10 * Encapsulated handling of the 'enter restore password' overlay page. | 10 * Encapsulated handling of the 'enter restore 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 $('certificateRestoreCancelButton').onclick = function(event) { | 31 $('certificateRestoreCancelButton').onclick = function(event) { |
| 32 self.cancelRestore_(); | 32 self.cancelRestore_(); |
| 33 } | 33 }; |
| 34 $('certificateRestoreOkButton').onclick = function(event) { | 34 $('certificateRestoreOkButton').onclick = function(event) { |
| 35 self.finishRestore_(); | 35 self.finishRestore_(); |
| 36 } | 36 }; |
| 37 | 37 |
| 38 self.clearInputFields_(); | 38 self.clearInputFields_(); |
| 39 }, | 39 }, |
| 40 | 40 |
| 41 /** | 41 /** |
| 42 * Clears any uncommitted input, and dismisses the overlay. | 42 * Clears any uncommitted input, and dismisses the overlay. |
| 43 * @private | 43 * @private |
| 44 */ | 44 */ |
| 45 dismissOverlay_: function() { | 45 dismissOverlay_: function() { |
| 46 this.clearInputFields_(); | 46 this.clearInputFields_(); |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 CertificateRestoreOverlay.dismiss = function() { | 88 CertificateRestoreOverlay.dismiss = function() { |
| 89 CertificateRestoreOverlay.getInstance().dismissOverlay_(); | 89 CertificateRestoreOverlay.getInstance().dismissOverlay_(); |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 // Export | 92 // Export |
| 93 return { | 93 return { |
| 94 CertificateRestoreOverlay: CertificateRestoreOverlay | 94 CertificateRestoreOverlay: CertificateRestoreOverlay |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 }); | 97 }); |
| OLD | NEW |