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

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

Issue 2445173002: DevTools: Fix highlight/selection of marker events (Closed)
Patch Set: Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/timeline/TimelineFlameChart.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 * @param {number} entryIndex 204 * @param {number} entryIndex
205 * @return {boolean} 205 * @return {boolean}
206 */ 206 */
207 forceDecoration: function(entryIndex) 207 forceDecoration: function(entryIndex)
208 { 208 {
209 return false; 209 return false;
210 }, 210 },
211 211
212 /** 212 /**
213 * @override 213 * @override
214 * @param {number} entryIndex
215 * @return {!{startTime: number, endTime: number}}
216 */
217 highlightTimeRange: function(entryIndex)
218 {
219 var startTime = this._timelineData.entryStartTimes[entryIndex];
220 return {
221 startTime: startTime,
222 endTime: startTime + this._timelineData.entryTotalTimes[entryIndex]
223 };
224 },
225
226 /**
227 * @override
228 * @return {number} 214 * @return {number}
229 */ 215 */
230 paddingLeft: function() 216 paddingLeft: function()
231 { 217 {
232 return 0; 218 return 0;
233 }, 219 },
234 220
235 /** 221 /**
236 * @override 222 * @override
237 * @param {number} entryIndex 223 * @param {number} entryIndex
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 { 641 {
656 var ratio = window.devicePixelRatio; 642 var ratio = window.devicePixelRatio;
657 this._overviewCanvas.width = width * ratio; 643 this._overviewCanvas.width = width * ratio;
658 this._overviewCanvas.height = height * ratio; 644 this._overviewCanvas.height = height * ratio;
659 this._overviewCanvas.style.width = width + "px"; 645 this._overviewCanvas.style.width = width + "px";
660 this._overviewCanvas.style.height = height + "px"; 646 this._overviewCanvas.style.height = height + "px";
661 }, 647 },
662 648
663 __proto__: WebInspector.VBox.prototype 649 __proto__: WebInspector.VBox.prototype
664 } 650 }
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/timeline/TimelineFlameChart.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698