| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @constructor | 6 * @constructor |
| 7 * @extends {WebInspector.TimelineUIUtils} | 7 * @extends {WebInspector.TimelineUIUtils} |
| 8 */ | 8 */ |
| 9 WebInspector.TimelineUIUtilsImpl = function() | 9 WebInspector.TimelineUIUtilsImpl = function() |
| 10 { | 10 { |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 recordTypes.MarkDOMContent, | 169 recordTypes.MarkDOMContent, |
| 170 recordTypes.MarkFirstPaint, | 170 recordTypes.MarkFirstPaint, |
| 171 recordTypes.MarkLoad, | 171 recordTypes.MarkLoad, |
| 172 recordTypes.RequestMainThreadFrame, | 172 recordTypes.RequestMainThreadFrame, |
| 173 recordTypes.ScheduleStyleRecalculation, | 173 recordTypes.ScheduleStyleRecalculation, |
| 174 recordTypes.UpdateCounters | 174 recordTypes.UpdateCounters |
| 175 ]; | 175 ]; |
| 176 return new WebInspector.TimelineRecordHiddenTypeFilter(hiddenRecords); | 176 return new WebInspector.TimelineRecordHiddenTypeFilter(hiddenRecords); |
| 177 }, | 177 }, |
| 178 | 178 |
| 179 /** | |
| 180 * @param {!WebInspector.TimelineModel} model | |
| 181 * @return {!WebInspector.TimelineModel.Record} | |
| 182 */ | |
| 183 createProgramRecord: function(model) | |
| 184 { | |
| 185 var payloadEvent = { type: WebInspector.TimelineModel.RecordType.Program
}; | |
| 186 return new WebInspector.TimelineModel.RecordImpl(model, /** @type {!Time
lineAgent.TimelineEvent} */ (payloadEvent), null); | |
| 187 }, | |
| 188 | |
| 189 __proto__: WebInspector.TimelineUIUtils.prototype | 179 __proto__: WebInspector.TimelineUIUtils.prototype |
| 190 } | 180 } |
| 191 | 181 |
| 192 | 182 |
| 193 WebInspector.TimelineUIUtilsImpl._coalescableRecordTypes = {}; | 183 WebInspector.TimelineUIUtilsImpl._coalescableRecordTypes = {}; |
| 194 WebInspector.TimelineUIUtilsImpl._coalescableRecordTypes[WebInspector.TimelineMo
del.RecordType.Layout] = 1; | 184 WebInspector.TimelineUIUtilsImpl._coalescableRecordTypes[WebInspector.TimelineMo
del.RecordType.Layout] = 1; |
| 195 WebInspector.TimelineUIUtilsImpl._coalescableRecordTypes[WebInspector.TimelineMo
del.RecordType.Paint] = 1; | 185 WebInspector.TimelineUIUtilsImpl._coalescableRecordTypes[WebInspector.TimelineMo
del.RecordType.Paint] = 1; |
| 196 WebInspector.TimelineUIUtilsImpl._coalescableRecordTypes[WebInspector.TimelineMo
del.RecordType.Rasterize] = 1; | 186 WebInspector.TimelineUIUtilsImpl._coalescableRecordTypes[WebInspector.TimelineMo
del.RecordType.Rasterize] = 1; |
| 197 WebInspector.TimelineUIUtilsImpl._coalescableRecordTypes[WebInspector.TimelineMo
del.RecordType.DecodeImage] = 1; | 187 WebInspector.TimelineUIUtilsImpl._coalescableRecordTypes[WebInspector.TimelineMo
del.RecordType.DecodeImage] = 1; |
| 198 WebInspector.TimelineUIUtilsImpl._coalescableRecordTypes[WebInspector.TimelineMo
del.RecordType.ResizeImage] = 1; | 188 WebInspector.TimelineUIUtilsImpl._coalescableRecordTypes[WebInspector.TimelineMo
del.RecordType.ResizeImage] = 1; |
| (...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 706 else if (recordType === recordTypes.TimeStamp) | 696 else if (recordType === recordTypes.TimeStamp) |
| 707 eventDivider.className += " resources-orange-divider"; | 697 eventDivider.className += " resources-orange-divider"; |
| 708 else if (recordType === recordTypes.BeginFrame) | 698 else if (recordType === recordTypes.BeginFrame) |
| 709 eventDivider.className += " timeline-frame-divider"; | 699 eventDivider.className += " timeline-frame-divider"; |
| 710 | 700 |
| 711 if (title) | 701 if (title) |
| 712 eventDivider.title = title; | 702 eventDivider.title = title; |
| 713 | 703 |
| 714 return eventDivider; | 704 return eventDivider; |
| 715 } | 705 } |
| OLD | NEW |