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

Side by Side Diff: chrome/browser/resources/options/certificate_restore_overlay.js

Issue 2939273002: DO NOT SUBMIT: what chrome/browser/resources/ could eventually look like with clang-format (Closed)
Patch Set: Created 3 years, 6 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 (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 * CertificateRestoreOverlay class 10 * CertificateRestoreOverlay class
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 PageManager.closeOverlay(); 49 PageManager.closeOverlay();
50 }, 50 },
51 51
52 /** 52 /**
53 * Attempt the restore operation. 53 * Attempt the restore 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 finishRestore_: function() { 58 finishRestore_: function() {
59 chrome.send('importPersonalCertificatePasswordSelected', 59 chrome.send(
60 [$('certificateRestorePassword').value]); 60 'importPersonalCertificatePasswordSelected',
61 [$('certificateRestorePassword').value]);
61 $('certificateRestoreCancelButton').disabled = true; 62 $('certificateRestoreCancelButton').disabled = true;
62 $('certificateRestoreOkButton').disabled = true; 63 $('certificateRestoreOkButton').disabled = true;
63 }, 64 },
64 65
65 /** 66 /**
66 * Cancel the restore operation. 67 * Cancel the restore operation.
67 * @private 68 * @private
68 */ 69 */
69 cancelRestore_: function() { 70 cancelRestore_: function() {
70 chrome.send('cancelImportExportCertificate'); 71 chrome.send('cancelImportExportCertificate');
(...skipping 14 matching lines...) Expand all
85 CertificateRestoreOverlay.show = function() { 86 CertificateRestoreOverlay.show = function() {
86 CertificateRestoreOverlay.getInstance().clearInputFields_(); 87 CertificateRestoreOverlay.getInstance().clearInputFields_();
87 PageManager.showPageByName('certificateRestore'); 88 PageManager.showPageByName('certificateRestore');
88 }; 89 };
89 90
90 CertificateRestoreOverlay.dismiss = function() { 91 CertificateRestoreOverlay.dismiss = function() {
91 CertificateRestoreOverlay.getInstance().dismissOverlay_(); 92 CertificateRestoreOverlay.getInstance().dismissOverlay_();
92 }; 93 };
93 94
94 // Export 95 // Export
95 return { 96 return {CertificateRestoreOverlay: CertificateRestoreOverlay};
96 CertificateRestoreOverlay: CertificateRestoreOverlay
97 };
98 97
99 }); 98 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698