| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2012 Intel Inc. All rights reserved. | 3 * Copyright (C) 2012 Intel Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 30 */ | 30 */ |
| 31 | 31 |
| 32 /** | 32 /** |
| 33 * @constructor | 33 * @constructor |
| 34 * @extends {WebInspector.HBox} | 34 * @extends {WebInspector.HBox} |
| 35 * @implements {WebInspector.TimelineModeView} | 35 * @implements {WebInspector.TimelineModeView} |
| 36 * @param {!WebInspector.TimelineModeViewDelegate} delegate | 36 * @param {!WebInspector.TimelineModeViewDelegate} delegate |
| 37 * @param {!WebInspector.TimelineModel} model | 37 * @param {!WebInspector.TimelineModel} model |
| 38 * @param {!Object.<string, number>} coalescableRecordTypes |
| 38 */ | 39 */ |
| 39 WebInspector.TimelineView = function(delegate, model) | 40 WebInspector.TimelineView = function(delegate, model, coalescableRecordTypes) |
| 40 { | 41 { |
| 41 WebInspector.HBox.call(this); | 42 WebInspector.HBox.call(this); |
| 42 this.element.classList.add("timeline-view"); | 43 this.element.classList.add("timeline-view"); |
| 43 | 44 |
| 44 this._delegate = delegate; | 45 this._delegate = delegate; |
| 45 this._model = model; | 46 this._model = model; |
| 46 this._presentationModel = new WebInspector.TimelinePresentationModel(model); | 47 this._presentationModel = new WebInspector.TimelinePresentationModel(model,
coalescableRecordTypes); |
| 47 this._calculator = new WebInspector.TimelineCalculator(model); | 48 this._calculator = new WebInspector.TimelineCalculator(model); |
| 48 this._linkifier = new WebInspector.Linkifier(); | 49 this._linkifier = new WebInspector.Linkifier(); |
| 49 this._frameStripByFrame = new Map(); | 50 this._frameStripByFrame = new Map(); |
| 50 | 51 |
| 51 this._boundariesAreValid = true; | 52 this._boundariesAreValid = true; |
| 52 this._scrollTop = 0; | 53 this._scrollTop = 0; |
| 53 | 54 |
| 54 this._recordsView = this._createRecordsView(); | 55 this._recordsView = this._createRecordsView(); |
| 55 this._recordsView.addEventListener(WebInspector.SplitView.Events.SidebarSize
Changed, this._sidebarResized, this); | 56 this._recordsView.addEventListener(WebInspector.SplitView.Events.SidebarSize
Changed, this._sidebarResized, this); |
| 56 this._recordsView.show(this.element); | 57 this._recordsView.show(this.element); |
| (...skipping 1236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1293 this._element.classList.remove("hidden"); | 1294 this._element.classList.remove("hidden"); |
| 1294 } else | 1295 } else |
| 1295 this._element.classList.add("hidden"); | 1296 this._element.classList.add("hidden"); |
| 1296 }, | 1297 }, |
| 1297 | 1298 |
| 1298 _dispose: function() | 1299 _dispose: function() |
| 1299 { | 1300 { |
| 1300 this._element.remove(); | 1301 this._element.remove(); |
| 1301 } | 1302 } |
| 1302 } | 1303 } |
| OLD | NEW |