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 19 matching lines...) Expand all Loading... |
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"); | 39 this.registerRequiredCSS("layersPanel.css"); |
| 40 this.registerRequiredCSS("timelinePanel.css"); |
40 this._target = null; | 41 this._target = null; |
41 | 42 |
42 this.sidebarElement().classList.add("outline-disclosure"); | 43 this.sidebarElement().classList.add("outline-disclosure"); |
43 this.sidebarTree.element.classList.remove("sidebar-tree"); | 44 this.sidebarTree.element.classList.remove("sidebar-tree"); |
44 | 45 |
45 WebInspector.targetManager.observeTargets(this); | 46 WebInspector.targetManager.observeTargets(this); |
46 this._currentlySelectedLayer = null; | 47 this._currentlySelectedLayer = null; |
47 this._currentlyHoveredLayer = null; | 48 this._currentlyHoveredLayer = null; |
48 | 49 |
49 this._layerTreeOutline = new WebInspector.LayerTreeOutline(this.sidebarTree)
; | 50 this._layerTreeOutline = new WebInspector.LayerTreeOutline(this.sidebarTree)
; |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 | 271 |
271 WebInspector.LayersPanelFactory.prototype = { | 272 WebInspector.LayersPanelFactory.prototype = { |
272 /** | 273 /** |
273 * @return {!WebInspector.Panel} | 274 * @return {!WebInspector.Panel} |
274 */ | 275 */ |
275 createPanel: function() | 276 createPanel: function() |
276 { | 277 { |
277 return WebInspector.LayersPanel._instance(); | 278 return WebInspector.LayersPanel._instance(); |
278 } | 279 } |
279 } | 280 } |
OLD | NEW |