| 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 */ var Page = cr.ui.pageManager.Page; | 6 /** @const */ var Page = cr.ui.pageManager.Page; |
| 7 /** @const */ var PageManager = cr.ui.pageManager.PageManager; | 7 /** @const */ var PageManager = cr.ui.pageManager.PageManager; |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * CertificateBackupOverlay class | 10 * CertificateBackupOverlay class |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 PageManager.closeOverlay(); | 49 PageManager.closeOverlay(); |
| 50 }, | 50 }, |
| 51 | 51 |
| 52 /** | 52 /** |
| 53 * Attempt the Backup operation. | 53 * Attempt the Backup operation. |
| 54 * The overlay will be left up with inputs disabled until the backend | 54 * The overlay will be left up with inputs disabled until the backend |
| 55 * finishes and dismisses it. | 55 * finishes and dismisses it. |
| 56 * @private | 56 * @private |
| 57 */ | 57 */ |
| 58 finishBackup_: function() { | 58 finishBackup_: function() { |
| 59 chrome.send('exportPersonalCertificatePasswordSelected', | 59 chrome.send( |
| 60 [$('certificateBackupPassword').value]); | 60 'exportPersonalCertificatePasswordSelected', |
| 61 [$('certificateBackupPassword').value]); |
| 61 $('certificateBackupCancelButton').disabled = true; | 62 $('certificateBackupCancelButton').disabled = true; |
| 62 $('certificateBackupOkButton').disabled = true; | 63 $('certificateBackupOkButton').disabled = true; |
| 63 $('certificateBackupPassword').disabled = true; | 64 $('certificateBackupPassword').disabled = true; |
| 64 $('certificateBackupPassword2').disabled = true; | 65 $('certificateBackupPassword2').disabled = true; |
| 65 }, | 66 }, |
| 66 | 67 |
| 67 /** | 68 /** |
| 68 * Cancel the Backup operation. | 69 * Cancel the Backup operation. |
| 69 * @private | 70 * @private |
| 70 */ | 71 */ |
| (...skipping 30 matching lines...) Expand all Loading... |
| 101 CertificateBackupOverlay.show = function() { | 102 CertificateBackupOverlay.show = function() { |
| 102 CertificateBackupOverlay.getInstance().clearInputFields_(); | 103 CertificateBackupOverlay.getInstance().clearInputFields_(); |
| 103 PageManager.showPageByName('certificateBackupOverlay'); | 104 PageManager.showPageByName('certificateBackupOverlay'); |
| 104 }; | 105 }; |
| 105 | 106 |
| 106 CertificateBackupOverlay.dismiss = function() { | 107 CertificateBackupOverlay.dismiss = function() { |
| 107 CertificateBackupOverlay.getInstance().dismissOverlay_(); | 108 CertificateBackupOverlay.getInstance().dismissOverlay_(); |
| 108 }; | 109 }; |
| 109 | 110 |
| 110 // Export | 111 // Export |
| 111 return { | 112 return {CertificateBackupOverlay: CertificateBackupOverlay}; |
| 112 CertificateBackupOverlay: CertificateBackupOverlay | |
| 113 }; | |
| 114 }); | 113 }); |
| OLD | NEW |