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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 104 |
105 /** | 105 /** |
106 * @return {?WebInspector.FlameChart.TimelineData} | 106 * @return {?WebInspector.FlameChart.TimelineData} |
107 */ | 107 */ |
108 timelineData: function() | 108 timelineData: function() |
109 { | 109 { |
110 return this._timelineData || this._calculateTimelineData(); | 110 return this._timelineData || this._calculateTimelineData(); |
111 }, | 111 }, |
112 | 112 |
113 /** | 113 /** |
| 114 * @param {number} startTime |
| 115 * @param {number} endTime |
| 116 * @return {?Array.<!WebInspector.FlameChartDataProvider.Marker>} |
| 117 */ |
| 118 timelineMarkers: function(startTime, endTime) |
| 119 { |
| 120 return null; |
| 121 }, |
| 122 |
| 123 /** |
114 * @return {?WebInspector.FlameChart.TimelineData} | 124 * @return {?WebInspector.FlameChart.TimelineData} |
115 */ | 125 */ |
116 _calculateTimelineData: function() | 126 _calculateTimelineData: function() |
117 { | 127 { |
118 /** | 128 /** |
119 * @constructor | 129 * @constructor |
120 * @param {number} depth | 130 * @param {number} depth |
121 * @param {number} duration | 131 * @param {number} duration |
122 * @param {number} startTime | 132 * @param {number} startTime |
123 * @param {number} selfTime | 133 * @param {number} selfTime |
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
641 { | 651 { |
642 var ratio = window.devicePixelRatio; | 652 var ratio = window.devicePixelRatio; |
643 this._overviewCanvas.width = width * ratio; | 653 this._overviewCanvas.width = width * ratio; |
644 this._overviewCanvas.height = height * ratio; | 654 this._overviewCanvas.height = height * ratio; |
645 this._overviewCanvas.style.width = width + "px"; | 655 this._overviewCanvas.style.width = width + "px"; |
646 this._overviewCanvas.style.height = height + "px"; | 656 this._overviewCanvas.style.height = height + "px"; |
647 }, | 657 }, |
648 | 658 |
649 __proto__: WebInspector.VBox.prototype | 659 __proto__: WebInspector.VBox.prototype |
650 } | 660 } |
OLD | NEW |