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

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

Issue 2314173003: Timeline: make prepareHighlightedEntryInfo return ?Promise<!Element> (Closed)
Patch Set: Timeline: make prepareHighlightEntryInfo return ?Element Created 4 years, 3 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 * @return {!WebInspector.FlameChart.TimelineData} 131 * @return {!WebInspector.FlameChart.TimelineData}
132 */ 132 */
133 _calculateTimelineData: function() 133 _calculateTimelineData: function()
134 { 134 {
135 throw "Not implemented."; 135 throw "Not implemented.";
136 }, 136 },
137 137
138 /** 138 /**
139 * @override 139 * @override
140 * @param {number} entryIndex 140 * @param {number} entryIndex
141 * @return {?Array<!{title: string, value: (string|!Element)}>} 141 * @return {?Element}
142 */ 142 */
143 prepareHighlightedEntryInfo: function(entryIndex) 143 prepareHighlightedEntryInfo: function(entryIndex)
144 { 144 {
145 throw "Not implemented."; 145 throw "Not implemented.";
146 }, 146 },
147 147
148 /** 148 /**
149 * @override 149 * @override
150 * @param {number} entryIndex 150 * @param {number} entryIndex
151 * @return {boolean} 151 * @return {boolean}
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 { 666 {
667 var ratio = window.devicePixelRatio; 667 var ratio = window.devicePixelRatio;
668 this._overviewCanvas.width = width * ratio; 668 this._overviewCanvas.width = width * ratio;
669 this._overviewCanvas.height = height * ratio; 669 this._overviewCanvas.height = height * ratio;
670 this._overviewCanvas.style.width = width + "px"; 670 this._overviewCanvas.style.width = width + "px";
671 this._overviewCanvas.style.height = height + "px"; 671 this._overviewCanvas.style.height = height + "px";
672 }, 672 },
673 673
674 __proto__: WebInspector.VBox.prototype 674 __proto__: WebInspector.VBox.prototype
675 } 675 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698