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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/TracingManager.js

Issue 2515763003: DevTools: use shorthand syntax in interface definitions. (Closed)
Patch Set: 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 * Copyright 2014 The Chromium Authors. All rights reserved. 2 * Copyright 2014 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 /** 6 /**
7 * @interface 7 * @interface
8 */ 8 */
9 SDK.TracingManagerClient = function() {}; 9 SDK.TracingManagerClient = function() {};
10 10
11 SDK.TracingManagerClient.prototype = { 11 SDK.TracingManagerClient.prototype = {
12 tracingStarted: function() {}, 12 tracingStarted() {},
13 /** 13 /**
14 * @param {!Array.<!SDK.TracingManager.EventPayload>} events 14 * @param {!Array.<!SDK.TracingManager.EventPayload>} events
15 */ 15 */
16 traceEventsCollected: function(events) {}, 16 traceEventsCollected(events) {},
17 tracingComplete: function() {}, 17 tracingComplete() {},
18 /** 18 /**
19 * @param {number} usage 19 * @param {number} usage
20 */ 20 */
21 tracingBufferUsage: function(usage) {}, 21 tracingBufferUsage(usage) {},
22 /** 22 /**
23 * @param {number} progress 23 * @param {number} progress
24 */ 24 */
25 eventsRetrievalProgress: function(progress) {} 25 eventsRetrievalProgress(progress) {}
26 }; 26 };
27 27
28 /** 28 /**
29 * @unrestricted 29 * @unrestricted
30 */ 30 */
31 SDK.TracingManager = class { 31 SDK.TracingManager = class {
32 /** 32 /**
33 * @param {!SDK.Target} target 33 * @param {!SDK.Target} target
34 */ 34 */
35 constructor(target) { 35 constructor(target) {
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 this._tracingManager._eventsCollected(data); 160 this._tracingManager._eventsCollected(data);
161 } 161 }
162 162
163 /** 163 /**
164 * @override 164 * @override
165 */ 165 */
166 tracingComplete() { 166 tracingComplete() {
167 this._tracingManager._tracingComplete(); 167 this._tracingManager._tracingComplete();
168 } 168 }
169 }; 169 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698