OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 The Chromium Authors. All rights reserved. | 2 * Copyright 2014 The Chromium Authors. All rights reserved. |
3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
7 /** | 7 /** |
8 * @constructor | 8 * @constructor |
9 * @extends {WebInspector.SplitView} | 9 * @extends {WebInspector.SplitWidget} |
10 */ | 10 */ |
11 WebInspector.TimelineLayersView = function() | 11 WebInspector.TimelineLayersView = function() |
12 { | 12 { |
13 WebInspector.SplitView.call(this, true, false, "timelineLayersView"); | 13 WebInspector.SplitWidget.call(this, true, false, "timelineLayersView"); |
14 this.element.classList.add("timeline-layers-view"); | 14 this.element.classList.add("timeline-layers-view"); |
15 this._rightSplitView = new WebInspector.SplitView(true, true, "timelineLayer
sViewDetails"); | 15 this._rightSplitWidget = new WebInspector.SplitWidget(true, true, "timelineL
ayersViewDetails"); |
16 this._rightSplitView.element.classList.add("timeline-layers-view-properties"
); | 16 this._rightSplitWidget.element.classList.add("timeline-layers-view-propertie
s"); |
17 this.setMainView(this._rightSplitView); | 17 this.setMainWidget(this._rightSplitWidget); |
18 | 18 |
19 this._paintTiles = []; | 19 this._paintTiles = []; |
20 | 20 |
21 var vbox = new WebInspector.VBox(); | 21 var vbox = new WebInspector.VBox(); |
22 this.setSidebarView(vbox); | 22 this.setSidebarWidget(vbox); |
23 | 23 |
24 this._layerViewHost = new WebInspector.LayerViewHost(); | 24 this._layerViewHost = new WebInspector.LayerViewHost(); |
25 | 25 |
26 var layerTreeOutline = new WebInspector.LayerTreeOutline(this._layerViewHost
); | 26 var layerTreeOutline = new WebInspector.LayerTreeOutline(this._layerViewHost
); |
27 vbox.element.appendChild(layerTreeOutline.element); | 27 vbox.element.appendChild(layerTreeOutline.element); |
28 | 28 |
29 this._layers3DView = new WebInspector.Layers3DView(this._layerViewHost); | 29 this._layers3DView = new WebInspector.Layers3DView(this._layerViewHost); |
30 this._layers3DView.addEventListener(WebInspector.Layers3DView.Events.PaintPr
ofilerRequested, this._jumpToPaintEvent, this); | 30 this._layers3DView.addEventListener(WebInspector.Layers3DView.Events.PaintPr
ofilerRequested, this._jumpToPaintEvent, this); |
31 this._rightSplitView.setMainView(this._layers3DView); | 31 this._rightSplitWidget.setMainWidget(this._layers3DView); |
32 | 32 |
33 var layerDetailsView = new WebInspector.LayerDetailsView(this._layerViewHost
); | 33 var layerDetailsView = new WebInspector.LayerDetailsView(this._layerViewHost
); |
34 this._rightSplitView.setSidebarView(layerDetailsView); | 34 this._rightSplitWidget.setSidebarWidget(layerDetailsView); |
35 layerDetailsView.addEventListener(WebInspector.LayerDetailsView.Events.Paint
ProfilerRequested, this._jumpToPaintEvent, this); | 35 layerDetailsView.addEventListener(WebInspector.LayerDetailsView.Events.Paint
ProfilerRequested, this._jumpToPaintEvent, this); |
36 | 36 |
37 } | 37 } |
38 | 38 |
39 WebInspector.TimelineLayersView.prototype = { | 39 WebInspector.TimelineLayersView.prototype = { |
40 /** | 40 /** |
41 * @param {!WebInspector.DeferredLayerTree} deferredLayerTree | 41 * @param {!WebInspector.DeferredLayerTree} deferredLayerTree |
42 * @param {?Array.<!WebInspector.LayerPaintEvent>} paints | 42 * @param {?Array.<!WebInspector.LayerPaintEvent>} paints |
43 */ | 43 */ |
44 showLayerTree: function(deferredLayerTree, paints) | 44 showLayerTree: function(deferredLayerTree, paints) |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 } | 144 } |
145 }, | 145 }, |
146 | 146 |
147 _disposeTiles: function() | 147 _disposeTiles: function() |
148 { | 148 { |
149 for (var i = 0; i < this._paintTiles.length; ++i) | 149 for (var i = 0; i < this._paintTiles.length; ++i) |
150 this._paintTiles[i].snapshot.dispose(); | 150 this._paintTiles[i].snapshot.dispose(); |
151 this._paintTiles = []; | 151 this._paintTiles = []; |
152 }, | 152 }, |
153 | 153 |
154 __proto__: WebInspector.SplitView.prototype | 154 __proto__: WebInspector.SplitWidget.prototype |
155 } | 155 } |
OLD | NEW |