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

Side by Side Diff: Source/devtools/front_end/timeline/TimelineUIUtilsImpl.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
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.TimelineUIUtilsImpl = function() 9 WebInspector.TimelineUIUtilsImpl = function()
10 { 10 {
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 * @param {!WebInspector.Linkifier} linkifier 98 * @param {!WebInspector.Linkifier} linkifier
99 * @param {function(!DocumentFragment)} callback 99 * @param {function(!DocumentFragment)} callback
100 * @param {boolean} loadedFromFile 100 * @param {boolean} loadedFromFile
101 */ 101 */
102 generateDetailsContent: function(record, model, linkifier, callback, loadedF romFile) 102 generateDetailsContent: function(record, model, linkifier, callback, loadedF romFile)
103 { 103 {
104 WebInspector.TimelineUIUtilsImpl.generateDetailsContent(record, model, l inkifier, callback, loadedFromFile); 104 WebInspector.TimelineUIUtilsImpl.generateDetailsContent(record, model, l inkifier, callback, loadedFromFile);
105 }, 105 },
106 106
107 /** 107 /**
108 * @return {!Element}
109 */
110 createBeginFrameDivider: function()
111 {
112 return this.createEventDivider(WebInspector.TimelineModel.RecordType.Beg inFrame);
113 },
114
115 /**
108 * @param {string} recordType 116 * @param {string} recordType
109 * @param {string=} title 117 * @param {string=} title
110 * @return {!Element} 118 * @return {!Element}
111 */ 119 */
112 createEventDivider: function(recordType, title) 120 createEventDivider: function(recordType, title)
113 { 121 {
114 return WebInspector.TimelineUIUtilsImpl._createEventDivider(recordType, title); 122 return WebInspector.TimelineUIUtilsImpl._createEventDivider(recordType, title);
115 }, 123 },
116 124
117 /** 125 /**
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 else if (recordType === recordTypes.TimeStamp) 562 else if (recordType === recordTypes.TimeStamp)
555 eventDivider.className += " resources-orange-divider"; 563 eventDivider.className += " resources-orange-divider";
556 else if (recordType === recordTypes.BeginFrame) 564 else if (recordType === recordTypes.BeginFrame)
557 eventDivider.className += " timeline-frame-divider"; 565 eventDivider.className += " timeline-frame-divider";
558 566
559 if (title) 567 if (title)
560 eventDivider.title = title; 568 eventDivider.title = title;
561 569
562 return eventDivider; 570 return eventDivider;
563 } 571 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/timeline/TimelineUIUtils.js ('k') | Source/devtools/front_end/timeline/TimelineView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698