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

Unified Diff: Source/devtools/front_end/timeline/TracingTimelineModel.js

Issue 344443007: Encapsulate implementation-specific timeline record handling in TimelineUIUtils (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/timeline/TracingTimelineModel.js
diff --git a/Source/devtools/front_end/timeline/TracingTimelineModel.js b/Source/devtools/front_end/timeline/TracingTimelineModel.js
index 956fcd57b0cdebc86ba016e8b0ce3af249b63eae..abdc4d08192881768af78fb795e77698aa031d70 100644
--- a/Source/devtools/front_end/timeline/TracingTimelineModel.js
+++ b/Source/devtools/front_end/timeline/TracingTimelineModel.js
@@ -605,30 +605,6 @@ WebInspector.TracingTimelineModel.TraceEventRecord.prototype = {
},
/**
- * @return {?Object}
- */
- counters: function()
- {
- return this.type() === WebInspector.TracingTimelineModel.RecordType.UpdateCounters ? this._event.args.data : null;
- },
-
- /**
- * @return {boolean}
- */
- isProgram: function()
- {
- return this.type() === WebInspector.TracingTimelineModel.RecordType.Program;
- },
-
- /**
- * @return {?Object}
- */
- highlightQuad: function()
- {
- return this._event.highlightQuad || null;
- },
-
- /**
* @return {string}
*/
frameId: function()
@@ -707,5 +683,13 @@ WebInspector.TracingTimelineModel.TraceEventRecord.prototype = {
tokens.push(data[key]);
}
return regExp.test(tokens.join("|"));
+ },
+
+ /**
+ * @return {!WebInspector.TracingModel.Event}
+ */
+ traceEvent: function()
+ {
+ return this._event;
}
}
« no previous file with comments | « Source/devtools/front_end/timeline/TimelineView.js ('k') | Source/devtools/front_end/timeline/TracingTimelineUIUtils.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698