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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 * @override | 149 * @override |
150 * @param {number} index | 150 * @param {number} index |
151 * @return {string} | 151 * @return {string} |
152 */ | 152 */ |
153 markerTitle: function(index) | 153 markerTitle: function(index) |
154 { | 154 { |
155 var event = this._markerEvents[index]; | 155 var event = this._markerEvents[index]; |
156 return WebInspector.TracingTimelineUIUtils.eventTitle(event, this._model
); | 156 return WebInspector.TracingTimelineUIUtils.eventTitle(event, this._model
); |
157 }, | 157 }, |
158 | 158 |
| 159 /** |
| 160 * @override |
| 161 * @param {number} index |
| 162 * @return {boolean} |
| 163 */ |
| 164 isTallMarker: function(index) |
| 165 { |
| 166 var event = this._markerEvents[index]; |
| 167 return WebInspector.TracingTimelineUIUtils.isTallMarkerEvent(event); |
| 168 }, |
| 169 |
159 reset: function() | 170 reset: function() |
160 { | 171 { |
161 this._timelineData = null; | 172 this._timelineData = null; |
162 /** @type {!Array.<!WebInspector.TracingModel.Event>} */ | 173 /** @type {!Array.<!WebInspector.TracingModel.Event>} */ |
163 this._entryEvents = []; | 174 this._entryEvents = []; |
164 this._entryIndexToTitle = {}; | 175 this._entryIndexToTitle = {}; |
165 this._markerEvents = []; | 176 this._markerEvents = []; |
166 this._entryIndexToFrame = {}; | 177 this._entryIndexToFrame = {}; |
167 this._asyncColorByCategory = {}; | 178 this._asyncColorByCategory = {}; |
168 }, | 179 }, |
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
902 /** | 913 /** |
903 * @constructor | 914 * @constructor |
904 * @param {!WebInspector.TimelineSelection} selection | 915 * @param {!WebInspector.TimelineSelection} selection |
905 * @param {number} entryIndex | 916 * @param {number} entryIndex |
906 */ | 917 */ |
907 WebInspector.TimelineFlameChart.Selection = function(selection, entryIndex) | 918 WebInspector.TimelineFlameChart.Selection = function(selection, entryIndex) |
908 { | 919 { |
909 this.timelineSelection = selection; | 920 this.timelineSelection = selection; |
910 this.entryIndex = entryIndex; | 921 this.entryIndex = entryIndex; |
911 } | 922 } |
OLD | NEW |