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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/extensions/ExtensionTraceProvider.js

Issue 2466123002: DevTools: reformat front-end code to match chromium style. (Closed)
Patch Set: all done Created 4 years, 1 month 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 /** 1 /**
2 * @constructor 2 * @unrestricted
3 * @param {string} extensionOrigin
4 * @param {string} id
5 * @param {string} categoryName
6 * @param {string} categoryTooltip
7 */ 3 */
8 WebInspector.ExtensionTraceProvider = function(extensionOrigin, id, categoryName , categoryTooltip) 4 WebInspector.ExtensionTraceProvider = class {
9 { 5 /**
6 * @param {string} extensionOrigin
7 * @param {string} id
8 * @param {string} categoryName
9 * @param {string} categoryTooltip
10 */
11 constructor(extensionOrigin, id, categoryName, categoryTooltip) {
10 this._extensionOrigin = extensionOrigin; 12 this._extensionOrigin = extensionOrigin;
11 this._id = id; 13 this._id = id;
12 this._categoryName = categoryName; 14 this._categoryName = categoryName;
13 this._categoryTooltip = categoryTooltip; 15 this._categoryTooltip = categoryTooltip;
16 }
17 start() {
18 WebInspector.extensionServer.startTraceRecording(this._id);
19 }
20
21 stop() {
22 WebInspector.extensionServer.stopTraceRecording(this._id);
23 }
14 }; 24 };
15
16 WebInspector.ExtensionTraceProvider.prototype = {
17 start: function()
18 {
19 WebInspector.extensionServer.startTraceRecording(this._id);
20 },
21
22 stop: function()
23 {
24 WebInspector.extensionServer.stopTraceRecording(this._id);
25 }
26 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698