| 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 18 matching lines...) Expand all Loading... |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 /** | 31 /** |
| 32 * @constructor | 32 * @constructor |
| 33 * @extends {WebInspector.PanelWithSidebar} | 33 * @extends {WebInspector.PanelWithSidebar} |
| 34 * @implements {WebInspector.TargetManager.Observer} | 34 * @implements {WebInspector.TargetManager.Observer} |
| 35 */ | 35 */ |
| 36 WebInspector.LayersPanel = function() | 36 WebInspector.LayersPanel = function() |
| 37 { | 37 { |
| 38 WebInspector.PanelWithSidebar.call(this, "layers", 225); | 38 WebInspector.PanelWithSidebar.call(this, "layers", 225); |
| 39 this.registerRequiredCSS("timeline/timelinePanel.css"); | 39 this.registerRequiredCSS("layers/layersPanel.css"); |
| 40 | 40 |
| 41 /** @type {?WebInspector.LayerTreeModel} */ | 41 /** @type {?WebInspector.LayerTreeModel} */ |
| 42 this._model = null; | 42 this._model = null; |
| 43 | 43 |
| 44 WebInspector.targetManager.observeTargets(this); | 44 WebInspector.targetManager.observeTargets(this); |
| 45 this._layerViewHost = new WebInspector.LayerViewHost(); | 45 this._layerViewHost = new WebInspector.LayerViewHost(); |
| 46 this._layerTreeOutline = new WebInspector.LayerTreeOutline(this._layerViewHo
st); | 46 this._layerTreeOutline = new WebInspector.LayerTreeOutline(this._layerViewHo
st); |
| 47 this.panelSidebarElement().appendChild(this._layerTreeOutline.element); | 47 this.panelSidebarElement().appendChild(this._layerTreeOutline.element); |
| 48 this.setDefaultFocusedElement(this._layerTreeOutline.element); | 48 this.setDefaultFocusedElement(this._layerTreeOutline.element); |
| 49 | 49 |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 reveal: function(snapshotData) | 177 reveal: function(snapshotData) |
| 178 { | 178 { |
| 179 if (!(snapshotData instanceof WebInspector.DeferredLayerTree)) | 179 if (!(snapshotData instanceof WebInspector.DeferredLayerTree)) |
| 180 return Promise.reject(new Error("Internal error: not a WebInspector.
DeferredLayerTree")); | 180 return Promise.reject(new Error("Internal error: not a WebInspector.
DeferredLayerTree")); |
| 181 var panel = /** @type {!WebInspector.LayersPanel} */ (self.runtime.share
dInstance(WebInspector.LayersPanel)); | 181 var panel = /** @type {!WebInspector.LayersPanel} */ (self.runtime.share
dInstance(WebInspector.LayersPanel)); |
| 182 WebInspector.inspectorView.setCurrentPanel(panel); | 182 WebInspector.inspectorView.setCurrentPanel(panel); |
| 183 panel._showLayerTree(/** @type {!WebInspector.DeferredLayerTree} */ (sna
pshotData)); | 183 panel._showLayerTree(/** @type {!WebInspector.DeferredLayerTree} */ (sna
pshotData)); |
| 184 return Promise.resolve(); | 184 return Promise.resolve(); |
| 185 } | 185 } |
| 186 } | 186 } |
| OLD | NEW |