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

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

Issue 2128133002: Timeline AddTraceProvider API Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Timeline AddTraceProvider API Created 4 years, 5 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
(Empty)
1 /**
2 * @constructor
3 * @param {string} extensionOrigin
4 * @param {string} id
5 * @param {string} categoryName
6 * @param {string} categoryTooltip
7 */
8 WebInspector.ExtensionTraceProvider = function(extensionOrigin, id, categoryName , categoryTooltip)
9 {
10 this._extensionOrigin = extensionOrigin;
11 this._id = id;
12 this._categoryName = categoryName;
13 this._categoryTooltip = categoryTooltip;
14 }
15
16 WebInspector.ExtensionTraceProvider.prototype = {
17 /**
18 * @return {string}
19 */
20 categoryName: function()
21 {
22 return this._categoryName;
23 },
24
25 /**
26 * @return {string}
27 */
28 categoryTooltip: function()
caseq 2016/07/19 22:01:16 this one and the one above look unused
29 {
30 return this._categoryTooltip;
31 },
32
33 run: function()
caseq 2016/07/19 22:01:17 rename to start
34 {
35 WebInspector.extensionServer.startTraceRecording(this._id);
36 },
37
38 stop: function()
39 {
40 WebInspector.extensionServer.stopTraceRecording(this._id);
41 }
42 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698