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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/profiler/CPUProfileFlameChart.js

Issue 1763193002: [DevTools] Fix more frontend compiler errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@caseq-patch
Patch Set: Created 4 years, 9 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
OLDNEW
1 /** 1 /**
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 if (ms === 0) 207 if (ms === 0)
208 return "0"; 208 return "0";
209 if (ms < 1000) 209 if (ms < 1000)
210 return WebInspector.UIString("%.1f\u2009ms", ms); 210 return WebInspector.UIString("%.1f\u2009ms", ms);
211 return Number.secondsToString(ms / 1000, true); 211 return Number.secondsToString(ms / 1000, true);
212 }, 212 },
213 213
214 /** 214 /**
215 * @override 215 * @override
216 * @param {number} entryIndex 216 * @param {number} entryIndex
217 * @return {?Array<!{title: string, value: (string,!Element)}>} 217 * @return {?Array<!{title: string, value: (string|!Element)}>}
218 */ 218 */
219 prepareHighlightedEntryInfo: function(entryIndex) 219 prepareHighlightedEntryInfo: function(entryIndex)
220 { 220 {
221 var timelineData = this._timelineData; 221 var timelineData = this._timelineData;
222 var node = this._entryNodes[entryIndex]; 222 var node = this._entryNodes[entryIndex];
223 if (!node) 223 if (!node)
224 return null; 224 return null;
225 225
226 var entryInfo = []; 226 var entryInfo = [];
227 /** 227 /**
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
764 { 764 {
765 var ratio = window.devicePixelRatio; 765 var ratio = window.devicePixelRatio;
766 this._overviewCanvas.width = width * ratio; 766 this._overviewCanvas.width = width * ratio;
767 this._overviewCanvas.height = height * ratio; 767 this._overviewCanvas.height = height * ratio;
768 this._overviewCanvas.style.width = width + "px"; 768 this._overviewCanvas.style.width = width + "px";
769 this._overviewCanvas.style.height = height + "px"; 769 this._overviewCanvas.style.height = height + "px";
770 }, 770 },
771 771
772 __proto__: WebInspector.VBox.prototype 772 __proto__: WebInspector.VBox.prototype
773 } 773 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698