OLD | NEW |
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 Loading... |
207 * @override | 207 * @override |
208 * @param {number} entryIndex | 208 * @param {number} entryIndex |
209 * @return {string} | 209 * @return {string} |
210 */ | 210 */ |
211 textColor: function(entryIndex) | 211 textColor: function(entryIndex) |
212 { | 212 { |
213 return "#333"; | 213 return "#333"; |
214 }, | 214 }, |
215 | 215 |
216 /** | 216 /** |
217 * @override | |
218 * @param {number} entryIndex | |
219 * @return {?{startTime: number, endTime: number}} | |
220 */ | |
221 highlightTimeRange: function(entryIndex) | |
222 { | |
223 var startTime = this._timelineData.entryStartTimes[entryIndex]; | |
224 return { | |
225 startTime: startTime, | |
226 endTime: startTime + this._timelineData.entryTotalTimes[entryIndex] | |
227 }; | |
228 }, | |
229 | |
230 /** | |
231 * @param {number} entryIndex | 217 * @param {number} entryIndex |
232 * @return {?WebInspector.TimelineSelection} | 218 * @return {?WebInspector.TimelineSelection} |
233 */ | 219 */ |
234 createSelection: function(entryIndex) | 220 createSelection: function(entryIndex) |
235 { | 221 { |
236 return null; | 222 return null; |
237 }, | 223 }, |
238 | 224 |
239 /** | 225 /** |
240 * @override | 226 * @override |
(...skipping 1264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1505 /** | 1491 /** |
1506 * @constructor | 1492 * @constructor |
1507 * @param {!WebInspector.TimelineSelection} selection | 1493 * @param {!WebInspector.TimelineSelection} selection |
1508 * @param {number} entryIndex | 1494 * @param {number} entryIndex |
1509 */ | 1495 */ |
1510 WebInspector.TimelineFlameChartView.Selection = function(selection, entryIndex) | 1496 WebInspector.TimelineFlameChartView.Selection = function(selection, entryIndex) |
1511 { | 1497 { |
1512 this.timelineSelection = selection; | 1498 this.timelineSelection = selection; |
1513 this.entryIndex = entryIndex; | 1499 this.entryIndex = entryIndex; |
1514 } | 1500 } |
OLD | NEW |