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

Side by Side Diff: Source/devtools/front_end/timeline/TracingTimelineUIUtils.js

Issue 335103003: Use TimelineUIUtils to create BeginFrame divider (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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/devtools/front_end/timeline/TimelineView.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @constructor 6 * @constructor
7 * @extends {WebInspector.TimelineUIUtils} 7 * @extends {WebInspector.TimelineUIUtils}
8 */ 8 */
9 WebInspector.TracingTimelineUIUtils = function() 9 WebInspector.TracingTimelineUIUtils = function()
10 { 10 {
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 */ 95 */
96 generateDetailsContent: function(record, model, linkifier, callback, loadedF romFile) 96 generateDetailsContent: function(record, model, linkifier, callback, loadedF romFile)
97 { 97 {
98 if (!(model instanceof WebInspector.TracingTimelineModel)) 98 if (!(model instanceof WebInspector.TracingTimelineModel))
99 throw new Error("Illegal argument."); 99 throw new Error("Illegal argument.");
100 var tracingTimelineModel = /** @type {!WebInspector.TracingTimelineModel } */ (model); 100 var tracingTimelineModel = /** @type {!WebInspector.TracingTimelineModel } */ (model);
101 WebInspector.TracingTimelineUIUtils.buildTraceEventDetails(record.traceE vent(), tracingTimelineModel, linkifier, callback, loadedFromFile, record.target ()); 101 WebInspector.TracingTimelineUIUtils.buildTraceEventDetails(record.traceE vent(), tracingTimelineModel, linkifier, callback, loadedFromFile, record.target ());
102 }, 102 },
103 103
104 /** 104 /**
105 * @return {!Element}
106 */
107 createBeginFrameDivider: function()
108 {
109 return this.createEventDivider(WebInspector.TracingTimelineModel.RecordT ype.BeginFrame);
110 },
111
112 /**
105 * @param {string} recordType 113 * @param {string} recordType
106 * @param {string=} title 114 * @param {string=} title
107 * @return {!Element} 115 * @return {!Element}
108 */ 116 */
109 createEventDivider: function(recordType, title) 117 createEventDivider: function(recordType, title)
110 { 118 {
111 return WebInspector.TracingTimelineUIUtils._createEventDivider(recordTyp e, title); 119 return WebInspector.TracingTimelineUIUtils._createEventDivider(recordTyp e, title);
112 }, 120 },
113 121
114 /** 122 /**
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 else if (recordType === recordTypes.TimeStamp) 720 else if (recordType === recordTypes.TimeStamp)
713 eventDivider.className += " resources-orange-divider"; 721 eventDivider.className += " resources-orange-divider";
714 else if (recordType === recordTypes.BeginFrame) 722 else if (recordType === recordTypes.BeginFrame)
715 eventDivider.className += " timeline-frame-divider"; 723 eventDivider.className += " timeline-frame-divider";
716 724
717 if (title) 725 if (title)
718 eventDivider.title = title; 726 eventDivider.title = title;
719 727
720 return eventDivider; 728 return eventDivider;
721 } 729 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/timeline/TimelineView.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698