| 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.PanelWithSidebarTree} | 33 * @extends {WebInspector.PanelWithSidebarTree} |
| 34 * @implements {WebInspector.TargetManager.Observer} | 34 * @implements {WebInspector.TargetManager.Observer} |
| 35 */ | 35 */ |
| 36 WebInspector.LayersPanel = function() | 36 WebInspector.LayersPanel = function() |
| 37 { | 37 { |
| 38 WebInspector.PanelWithSidebarTree.call(this, "layers", 225); | 38 WebInspector.PanelWithSidebarTree.call(this, "layers", 225); |
| 39 this.registerRequiredCSS("layersPanel.css"); | |
| 40 this.registerRequiredCSS("timelinePanel.css"); | 39 this.registerRequiredCSS("timelinePanel.css"); |
| 41 this._target = null; | 40 this._target = null; |
| 42 | 41 |
| 43 this.sidebarElement().classList.add("outline-disclosure"); | 42 this.sidebarElement().classList.add("outline-disclosure", "layer-tree"); |
| 44 this.sidebarTree.element.classList.remove("sidebar-tree"); | 43 this.sidebarTree.element.classList.remove("sidebar-tree"); |
| 45 | 44 |
| 46 WebInspector.targetManager.observeTargets(this); | 45 WebInspector.targetManager.observeTargets(this); |
| 47 this._currentlySelectedLayer = null; | 46 this._currentlySelectedLayer = null; |
| 48 this._currentlyHoveredLayer = null; | 47 this._currentlyHoveredLayer = null; |
| 49 | 48 |
| 50 this._layerTreeOutline = new WebInspector.LayerTreeOutline(this.sidebarTree)
; | 49 this._layerTreeOutline = new WebInspector.LayerTreeOutline(this.sidebarTree)
; |
| 51 this._layerTreeOutline.addEventListener(WebInspector.LayerTreeOutline.Events
.LayerSelected, this._onObjectSelected, this); | 50 this._layerTreeOutline.addEventListener(WebInspector.LayerTreeOutline.Events
.LayerSelected, this._onObjectSelected, this); |
| 52 this._layerTreeOutline.addEventListener(WebInspector.LayerTreeOutline.Events
.LayerHovered, this._onObjectHovered, this); | 51 this._layerTreeOutline.addEventListener(WebInspector.LayerTreeOutline.Events
.LayerHovered, this._onObjectHovered, this); |
| 53 | 52 |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 | 270 |
| 272 WebInspector.LayersPanelFactory.prototype = { | 271 WebInspector.LayersPanelFactory.prototype = { |
| 273 /** | 272 /** |
| 274 * @return {!WebInspector.Panel} | 273 * @return {!WebInspector.Panel} |
| 275 */ | 274 */ |
| 276 createPanel: function() | 275 createPanel: function() |
| 277 { | 276 { |
| 278 return WebInspector.LayersPanel._instance(); | 277 return WebInspector.LayersPanel._instance(); |
| 279 } | 278 } |
| 280 } | 279 } |
| OLD | NEW |