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

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

Issue 715803002: DevTools: merge TracingTimelineModel into TimelineModel (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * Copyright (C) 2012 Intel Inc. All rights reserved. 3 * Copyright (C) 2012 Intel Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 frameStrip._frame = frame; 170 frameStrip._frame = frame;
171 this._frameStripByFrame.set(frame, frameStrip); 171 this._frameStripByFrame.set(frame, frameStrip);
172 172
173 const minWidthForFrameInfo = 60; 173 const minWidthForFrameInfo = 60;
174 if (width > minWidthForFrameInfo) 174 if (width > minWidthForFrameInfo)
175 frameStrip.textContent = Number.millisToString(frame.endTime - f rame.startTime, true); 175 frameStrip.textContent = Number.millisToString(frame.endTime - f rame.startTime, true);
176 176
177 this._frameContainer.appendChild(frameStrip); 177 this._frameContainer.appendChild(frameStrip);
178 178
179 if (actualStart > 0) { 179 if (actualStart > 0) {
180 var frameMarker = WebInspector.TimelineUIUtils.createEventDivide r(WebInspector.TracingTimelineModel.RecordType.BeginFrame); 180 var frameMarker = WebInspector.TimelineUIUtils.createEventDivide r(WebInspector.TimelineModel.RecordType.BeginFrame);
181 frameMarker.style.left = frameStart + "px"; 181 frameMarker.style.left = frameStart + "px";
182 dividers.push(frameMarker); 182 dividers.push(frameMarker);
183 } 183 }
184 } 184 }
185 this._timelineGrid.addEventDividers(dividers); 185 this._timelineGrid.addEventDividers(dividers);
186 this._headerElement.appendChild(this._frameContainer); 186 this._headerElement.appendChild(this._frameContainer);
187 }, 187 },
188 188
189 _onFrameDoubleClicked: function(event) 189 _onFrameDoubleClicked: function(event)
190 { 190 {
(...skipping 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after
1288 } else { 1288 } else {
1289 this._element.classList.add("hidden"); 1289 this._element.classList.add("hidden");
1290 } 1290 }
1291 }, 1291 },
1292 1292
1293 _dispose: function() 1293 _dispose: function()
1294 { 1294 {
1295 this._element.remove(); 1295 this._element.remove();
1296 } 1296 }
1297 } 1297 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698