Commit b2c74883 authored by yurys@chromium.org's avatar yurys@chromium.org

Use TimelineUIUtils to create BeginFrame divider

BUG=361045
R=loislo@chromium.org

Review URL: https://codereview.chromium.org/335103003

git-svn-id: svn://svn.chromium.org/blink/trunk@176512 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent c1a1685d
...@@ -112,6 +112,13 @@ WebInspector.TimelineUIUtils.prototype = { ...@@ -112,6 +112,13 @@ WebInspector.TimelineUIUtils.prototype = {
{ {
throw new Error("Not implemented."); throw new Error("Not implemented.");
}, },
/**
* @return {!Element}
*/
createBeginFrameDivider: function()
{
throw new Error("Not implemented.");
},
/** /**
* @param {string} recordType * @param {string} recordType
* @param {string=} title * @param {string=} title
......
...@@ -104,6 +104,14 @@ WebInspector.TimelineUIUtilsImpl.prototype = { ...@@ -104,6 +104,14 @@ WebInspector.TimelineUIUtilsImpl.prototype = {
WebInspector.TimelineUIUtilsImpl.generateDetailsContent(record, model, linkifier, callback, loadedFromFile); WebInspector.TimelineUIUtilsImpl.generateDetailsContent(record, model, linkifier, callback, loadedFromFile);
}, },
/**
* @return {!Element}
*/
createBeginFrameDivider: function()
{
return this.createEventDivider(WebInspector.TimelineModel.RecordType.BeginFrame);
},
/** /**
* @param {string} recordType * @param {string} recordType
* @param {string=} title * @param {string=} title
......
...@@ -182,7 +182,7 @@ WebInspector.TimelineView.prototype = { ...@@ -182,7 +182,7 @@ WebInspector.TimelineView.prototype = {
this._frameContainer.appendChild(frameStrip); this._frameContainer.appendChild(frameStrip);
if (actualStart > 0) { if (actualStart > 0) {
var frameMarker = this._uiUtils.createEventDivider(WebInspector.TimelineModel.RecordType.BeginFrame); var frameMarker = this._uiUtils.createBeginFrameDivider();
frameMarker.style.left = frameStart + "px"; frameMarker.style.left = frameStart + "px";
dividers.push(frameMarker); dividers.push(frameMarker);
} }
......
...@@ -101,6 +101,14 @@ WebInspector.TracingTimelineUIUtils.prototype = { ...@@ -101,6 +101,14 @@ WebInspector.TracingTimelineUIUtils.prototype = {
WebInspector.TracingTimelineUIUtils.buildTraceEventDetails(record.traceEvent(), tracingTimelineModel, linkifier, callback, loadedFromFile, record.target()); WebInspector.TracingTimelineUIUtils.buildTraceEventDetails(record.traceEvent(), tracingTimelineModel, linkifier, callback, loadedFromFile, record.target());
}, },
/**
* @return {!Element}
*/
createBeginFrameDivider: function()
{
return this.createEventDivider(WebInspector.TracingTimelineModel.RecordType.BeginFrame);
},
/** /**
* @param {string} recordType * @param {string} recordType
* @param {string=} title * @param {string=} title
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment