Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Side by Side Diff: Source/devtools/front_end/layers/LayersPanel.js

Issue 659403003: Timeline: add layer tree outline to layer details view (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: removed layersPanel.css altogether Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/layers/LayerTreeOutline.js ('k') | Source/devtools/front_end/layers/module.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698