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

Side by Side Diff: chrome/browser/resources/settings/reset_page/reset_browser_proxy.js

Issue 2946563002: Run clang-format on .js files in c/b/r/settings (Closed)
Patch Set: dschuyler@ review 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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('settings', function() { 5 cr.define('settings', function() {
6 /** @interface */ 6 /** @interface */
7 function ResetBrowserProxy() {} 7 function ResetBrowserProxy() {}
8 8
9 ResetBrowserProxy.prototype = { 9 ResetBrowserProxy.prototype = {
10 /** 10 /**
(...skipping 25 matching lines...) Expand all
36 */ 36 */
37 showReportedSettings: function() {}, 37 showReportedSettings: function() {},
38 38
39 /** 39 /**
40 * Retrieves the triggered reset tool name. 40 * Retrieves the triggered reset tool name.
41 * @return {!Promise<string>} A promise firing with the tool name, once it 41 * @return {!Promise<string>} A promise firing with the tool name, once it
42 * has been retrieved. 42 * has been retrieved.
43 */ 43 */
44 getTriggeredResetToolName: function() {}, 44 getTriggeredResetToolName: function() {},
45 45
46 // <if expr="chromeos"> 46 // <if expr="chromeos">
47 /** 47 /**
48 * A method to be called when the reset powerwash dialog is shown. 48 * A method to be called when the reset powerwash dialog is shown.
49 */ 49 */
50 onPowerwashDialogShow: function() {}, 50 onPowerwashDialogShow: function() {},
51 51
52 /** 52 /**
53 * Initiates a factory reset and restarts ChromeOS. 53 * Initiates a factory reset and restarts ChromeOS.
54 */ 54 */
55 requestFactoryResetRestart: function() {}, 55 requestFactoryResetRestart: function() {},
56 // </if> 56 // </if>
57 }; 57 };
58 58
59 /** 59 /**
60 * @constructor 60 * @constructor
61 * @implements {settings.ResetBrowserProxy} 61 * @implements {settings.ResetBrowserProxy}
62 */ 62 */
63 function ResetBrowserProxyImpl() {} 63 function ResetBrowserProxyImpl() {}
64 cr.addSingletonGetter(ResetBrowserProxyImpl); 64 cr.addSingletonGetter(ResetBrowserProxyImpl);
65 65
66 ResetBrowserProxyImpl.prototype = { 66 ResetBrowserProxyImpl.prototype = {
67 /** @override */ 67 /** @override */
68 performResetProfileSettings: function(sendSettings, requestOrigin) { 68 performResetProfileSettings: function(sendSettings, requestOrigin) {
69 return cr.sendWithPromise('performResetProfileSettings', 69 return cr.sendWithPromise(
70 sendSettings, requestOrigin); 70 'performResetProfileSettings', sendSettings, requestOrigin);
71 }, 71 },
72 72
73 /** @override */ 73 /** @override */
74 onHideResetProfileDialog: function() { 74 onHideResetProfileDialog: function() {
75 chrome.send('onHideResetProfileDialog'); 75 chrome.send('onHideResetProfileDialog');
76 }, 76 },
77 77
78 /** @override */ 78 /** @override */
79 onHideResetProfileBanner: function() { 79 onHideResetProfileBanner: function() {
80 chrome.send('onHideResetProfileBanner'); 80 chrome.send('onHideResetProfileBanner');
(...skipping 16 matching lines...) Expand all
97 div.style.whiteSpace = 'pre'; 97 div.style.whiteSpace = 'pre';
98 win.document.body.appendChild(div); 98 win.document.body.appendChild(div);
99 }); 99 });
100 }, 100 },
101 101
102 /** @override */ 102 /** @override */
103 getTriggeredResetToolName: function() { 103 getTriggeredResetToolName: function() {
104 return cr.sendWithPromise('getTriggeredResetToolName'); 104 return cr.sendWithPromise('getTriggeredResetToolName');
105 }, 105 },
106 106
107 // <if expr="chromeos"> 107 // <if expr="chromeos">
108 /** @override */ 108 /** @override */
109 onPowerwashDialogShow: function() { 109 onPowerwashDialogShow: function() {
110 chrome.send('onPowerwashDialogShow'); 110 chrome.send('onPowerwashDialogShow');
111 }, 111 },
112 112
113 /** @override */ 113 /** @override */
114 requestFactoryResetRestart: function() { 114 requestFactoryResetRestart: function() {
115 chrome.send('requestFactoryResetRestart'); 115 chrome.send('requestFactoryResetRestart');
116 }, 116 },
117 // </if> 117 // </if>
118 }; 118 };
119 119
120 return { 120 return {
121 ResetBrowserProxyImpl: ResetBrowserProxyImpl, 121 ResetBrowserProxyImpl: ResetBrowserProxyImpl,
122 }; 122 };
123 }); 123 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698