OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 21 matching lines...) Expand all Loading... | |
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 * @inheritDoc | |
Dan Beam
2012/02/11 01:58:27
nit: an overwhelming majority of chrome/browser/re
James Hawkins
2012/02/11 02:04:58
Done.
| |
43 */ | |
44 didShowPage: function() { | |
45 $('certificateRestorePassword').focus(); | |
46 }, | |
47 | |
48 /** | |
42 * Clears any uncommitted input, and dismisses the overlay. | 49 * Clears any uncommitted input, and dismisses the overlay. |
43 * @private | 50 * @private |
44 */ | 51 */ |
45 dismissOverlay_: function() { | 52 dismissOverlay_: function() { |
46 this.clearInputFields_(); | 53 this.clearInputFields_(); |
47 OptionsPage.closeOverlay(); | 54 OptionsPage.closeOverlay(); |
48 }, | 55 }, |
49 | 56 |
50 /** | 57 /** |
51 * Attempt the restore operation. | 58 * Attempt the restore operation. |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
88 CertificateRestoreOverlay.dismiss = function() { | 95 CertificateRestoreOverlay.dismiss = function() { |
89 CertificateRestoreOverlay.getInstance().dismissOverlay_(); | 96 CertificateRestoreOverlay.getInstance().dismissOverlay_(); |
90 }; | 97 }; |
91 | 98 |
92 // Export | 99 // Export |
93 return { | 100 return { |
94 CertificateRestoreOverlay: CertificateRestoreOverlay | 101 CertificateRestoreOverlay: CertificateRestoreOverlay |
95 }; | 102 }; |
96 | 103 |
97 }); | 104 }); |
OLD | NEW |