| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 28 matching lines...) Expand all Loading... |
| 39 this.registerRequiredCSS("timeline/timelinePanel.css"); | 39 this.registerRequiredCSS("timeline/timelinePanel.css"); |
| 40 | 40 |
| 41 this._target = null; | 41 this._target = null; |
| 42 | 42 |
| 43 WebInspector.targetManager.observeTargets(this); | 43 WebInspector.targetManager.observeTargets(this); |
| 44 this._layerViewHost = new WebInspector.LayerViewHost(); | 44 this._layerViewHost = new WebInspector.LayerViewHost(); |
| 45 this._layerTreeOutline = new WebInspector.LayerTreeOutline(this._layerViewHo
st); | 45 this._layerTreeOutline = new WebInspector.LayerTreeOutline(this._layerViewHo
st); |
| 46 this.panelSidebarElement().appendChild(this._layerTreeOutline.element); | 46 this.panelSidebarElement().appendChild(this._layerTreeOutline.element); |
| 47 this.setDefaultFocusedElement(this._layerTreeOutline.element); | 47 this.setDefaultFocusedElement(this._layerTreeOutline.element); |
| 48 | 48 |
| 49 this._rightSplitView = new WebInspector.SplitView(false, true, "layerDetails
SplitViewState"); | 49 this._rightSplitWidget = new WebInspector.SplitWidget(false, true, "layerDet
ailsSplitViewState"); |
| 50 this.splitView().setMainView(this._rightSplitView); | 50 this.splitWidget().setMainWidget(this._rightSplitWidget); |
| 51 | 51 |
| 52 this._layers3DView = new WebInspector.Layers3DView(this._layerViewHost); | 52 this._layers3DView = new WebInspector.Layers3DView(this._layerViewHost); |
| 53 this._rightSplitView.setMainView(this._layers3DView); | 53 this._rightSplitWidget.setMainWidget(this._layers3DView); |
| 54 this._layers3DView.addEventListener(WebInspector.Layers3DView.Events.LayerSn
apshotRequested, this._onSnapshotRequested, this); | 54 this._layers3DView.addEventListener(WebInspector.Layers3DView.Events.LayerSn
apshotRequested, this._onSnapshotRequested, this); |
| 55 | 55 |
| 56 this._tabbedPane = new WebInspector.TabbedPane(); | 56 this._tabbedPane = new WebInspector.TabbedPane(); |
| 57 this._rightSplitView.setSidebarView(this._tabbedPane); | 57 this._rightSplitWidget.setSidebarWidget(this._tabbedPane); |
| 58 | 58 |
| 59 this._layerDetailsView = new WebInspector.LayerDetailsView(this._layerViewHo
st); | 59 this._layerDetailsView = new WebInspector.LayerDetailsView(this._layerViewHo
st); |
| 60 this._tabbedPane.appendTab(WebInspector.LayersPanel.DetailsViewTabs.Details,
WebInspector.UIString("Details"), this._layerDetailsView); | 60 this._tabbedPane.appendTab(WebInspector.LayersPanel.DetailsViewTabs.Details,
WebInspector.UIString("Details"), this._layerDetailsView); |
| 61 | 61 |
| 62 this._paintProfilerView = new WebInspector.LayerPaintProfilerView(this._laye
rs3DView.showImageForLayer.bind(this._layers3DView)); | 62 this._paintProfilerView = new WebInspector.LayerPaintProfilerView(this._laye
rs3DView.showImageForLayer.bind(this._layers3DView)); |
| 63 this._tabbedPane.appendTab(WebInspector.LayersPanel.DetailsViewTabs.Profiler
, WebInspector.UIString("Profiler"), this._paintProfilerView); | 63 this._tabbedPane.appendTab(WebInspector.LayersPanel.DetailsViewTabs.Profiler
, WebInspector.UIString("Profiler"), this._paintProfilerView); |
| 64 } | 64 } |
| 65 | 65 |
| 66 WebInspector.LayersPanel.DetailsViewTabs = { | 66 WebInspector.LayersPanel.DetailsViewTabs = { |
| 67 Details: "details", | 67 Details: "details", |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 WebInspector.LayersPanelFactory.prototype = { | 203 WebInspector.LayersPanelFactory.prototype = { |
| 204 /** | 204 /** |
| 205 * @override | 205 * @override |
| 206 * @return {!WebInspector.Panel} | 206 * @return {!WebInspector.Panel} |
| 207 */ | 207 */ |
| 208 createPanel: function() | 208 createPanel: function() |
| 209 { | 209 { |
| 210 return WebInspector.LayersPanel._instance(); | 210 return WebInspector.LayersPanel._instance(); |
| 211 } | 211 } |
| 212 } | 212 } |
| OLD | NEW |