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

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

Issue 709423002: DevTools: remove old Timeline front-end implementation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated LayoutTests/inspector/layers/layer-canvas-log.html 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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 continue; 269 continue;
270 pieChart.addSlice(value, category.fillColorStop0); 270 pieChart.addSlice(value, category.fillColorStop0);
271 rowElement = footerElement.createChild("div"); 271 rowElement = footerElement.createChild("div");
272 rowElement.createChild("div", "timeline-aggregated-category timeline-" + category.name); 272 rowElement.createChild("div", "timeline-aggregated-category timeline-" + category.name);
273 rowElement.createTextChild(WebInspector.UIString("%s %s", formatter(val ue), category.title)); 273 rowElement.createTextChild(WebInspector.UIString("%s %s", formatter(val ue), category.title));
274 } 274 }
275 return element; 275 return element;
276 } 276 }
277 277
278 /** 278 /**
279 * @param {!WebInspector.TimelineFrameModel} frameModel 279 * @param {!WebInspector.TimelineFrameModelBase} frameModel
280 * @param {!WebInspector.TimelineFrame} frame 280 * @param {!WebInspector.TimelineFrame} frame
281 * @return {!Element} 281 * @return {!Element}
282 */ 282 */
283 WebInspector.TimelineUIUtils.generateDetailsContentForFrame = function(frameMode l, frame) 283 WebInspector.TimelineUIUtils.generateDetailsContentForFrame = function(frameMode l, frame)
284 { 284 {
285 var durationInMillis = frame.endTime - frame.startTime; 285 var durationInMillis = frame.endTime - frame.startTime;
286 var durationText = WebInspector.UIString("%s (at %s)", Number.millisToString (frame.endTime - frame.startTime, true), 286 var durationText = WebInspector.UIString("%s (at %s)", Number.millisToString (frame.endTime - frame.startTime, true),
287 Number.millisToString(frame.startTimeOffset, true)); 287 Number.millisToString(frame.startTimeOffset, true));
288 var pieChart = WebInspector.TimelineUIUtils.generatePieChart(frame.timeByCat egory); 288 var pieChart = WebInspector.TimelineUIUtils.generatePieChart(frame.timeByCat egory);
289 var contentHelper = new WebInspector.TimelineDetailsContentHelper(null, null , true); 289 var contentHelper = new WebInspector.TimelineDetailsContentHelper(null, null , true);
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 for (var i = 0; i < stackTrace.length; ++i) { 558 for (var i = 0; i < stackTrace.length; ++i) {
559 var stackFrame = stackTrace[i]; 559 var stackFrame = stackTrace[i];
560 var row = stackTraceElement.createChild("div"); 560 var row = stackTraceElement.createChild("div");
561 row.createTextChild(stackFrame.functionName || WebInspector.UIString ("(anonymous function)")); 561 row.createTextChild(stackFrame.functionName || WebInspector.UIString ("(anonymous function)"));
562 row.createTextChild(" @ "); 562 row.createTextChild(" @ ");
563 var urlElement = this._linkifier.linkifyScriptLocation(this._target, stackFrame.scriptId, stackFrame.url, stackFrame.lineNumber - 1, stackFrame.colu mnNumber - 1); 563 var urlElement = this._linkifier.linkifyScriptLocation(this._target, stackFrame.scriptId, stackFrame.url, stackFrame.lineNumber - 1, stackFrame.colu mnNumber - 1);
564 row.appendChild(urlElement); 564 row.appendChild(urlElement);
565 } 565 }
566 } 566 }
567 } 567 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/timeline/TimelinePanel.js ('k') | Source/devtools/front_end/timeline/TimelineUIUtilsImpl.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698