| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> | 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> |
| 4 * Copyright (C) 2009 Joseph Pecoraro | 4 * Copyright (C) 2009 Joseph Pecoraro |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 this.sidebarPanes.styles.setFilterBoxContainer(this._matchedStylesFilterBoxC
ontainer); | 75 this.sidebarPanes.styles.setFilterBoxContainer(this._matchedStylesFilterBoxC
ontainer); |
| 76 | 76 |
| 77 this._computedStylesFilterBoxContainer = createElement("div"); | 77 this._computedStylesFilterBoxContainer = createElement("div"); |
| 78 this._computedStylesFilterBoxContainer.className = "sidebar-pane-filter-box"
; | 78 this._computedStylesFilterBoxContainer.className = "sidebar-pane-filter-box"
; |
| 79 this.sidebarPanes.computedStyle.setFilterBoxContainer(this._computedStylesFi
lterBoxContainer); | 79 this.sidebarPanes.computedStyle.setFilterBoxContainer(this._computedStylesFi
lterBoxContainer); |
| 80 | 80 |
| 81 this.sidebarPanes.metrics = new WebInspector.MetricsSidebarPane(); | 81 this.sidebarPanes.metrics = new WebInspector.MetricsSidebarPane(); |
| 82 this.sidebarPanes.properties = new WebInspector.PropertiesSidebarPane(); | 82 this.sidebarPanes.properties = new WebInspector.PropertiesSidebarPane(); |
| 83 this.sidebarPanes.domBreakpoints = WebInspector.domBreakpointsSidebarPane.cr
eateProxy(this); | 83 this.sidebarPanes.domBreakpoints = WebInspector.domBreakpointsSidebarPane.cr
eateProxy(this); |
| 84 this.sidebarPanes.eventListeners = new WebInspector.EventListenersSidebarPan
e(); | 84 this.sidebarPanes.eventListeners = new WebInspector.EventListenersSidebarPan
e(); |
| 85 this.sidebarPanes.objectEventListeners = new WebInspector.ObjectEventListene
rsSidebarPane(); |
| 85 if (Runtime.experiments.isEnabled("animationInspection")) | 86 if (Runtime.experiments.isEnabled("animationInspection")) |
| 86 this.sidebarPanes.animations = new WebInspector.AnimationsSidebarPane(); | 87 this.sidebarPanes.animations = new WebInspector.AnimationsSidebarPane(); |
| 87 | 88 |
| 88 WebInspector.dockController.addEventListener(WebInspector.DockController.Eve
nts.DockSideChanged, this._dockSideChanged.bind(this)); | 89 WebInspector.dockController.addEventListener(WebInspector.DockController.Eve
nts.DockSideChanged, this._dockSideChanged.bind(this)); |
| 89 WebInspector.settings.splitVerticallyWhenDockedToRight.addChangeListener(thi
s._dockSideChanged.bind(this)); | 90 WebInspector.settings.splitVerticallyWhenDockedToRight.addChangeListener(thi
s._dockSideChanged.bind(this)); |
| 90 this._dockSideChanged(); | 91 this._dockSideChanged(); |
| 91 this._loadSidebarViews(); | 92 this._loadSidebarViews(); |
| 92 | 93 |
| 93 /** @type {!Array.<!WebInspector.ElementsTreeOutline>} */ | 94 /** @type {!Array.<!WebInspector.ElementsTreeOutline>} */ |
| 94 this._treeOutlines = []; | 95 this._treeOutlines = []; |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 this._selectedNodeChangedForTest(); | 312 this._selectedNodeChangedForTest(); |
| 312 }, | 313 }, |
| 313 | 314 |
| 314 _selectedNodeChangedForTest: function() { }, | 315 _selectedNodeChangedForTest: function() { }, |
| 315 | 316 |
| 316 _updateSidebars: function() | 317 _updateSidebars: function() |
| 317 { | 318 { |
| 318 this._updateCSSSidebars(); | 319 this._updateCSSSidebars(); |
| 319 this.sidebarPanes.properties.setNode(this.selectedDOMNode()); | 320 this.sidebarPanes.properties.setNode(this.selectedDOMNode()); |
| 320 this.sidebarPanes.eventListeners.setNode(this.selectedDOMNode()); | 321 this.sidebarPanes.eventListeners.setNode(this.selectedDOMNode()); |
| 322 this.sidebarPanes.objectEventListeners.update(); |
| 321 if (this.sidebarPanes.animations) | 323 if (this.sidebarPanes.animations) |
| 322 this.sidebarPanes.animations.setNode(this.selectedDOMNode()); | 324 this.sidebarPanes.animations.setNode(this.selectedDOMNode()); |
| 323 for (var sidebarView of this._elementsSidebarViewWrappers) | 325 for (var sidebarView of this._elementsSidebarViewWrappers) |
| 324 sidebarView.setNode(this.selectedDOMNode()); | 326 sidebarView.setNode(this.selectedDOMNode()); |
| 325 }, | 327 }, |
| 326 | 328 |
| 327 _reset: function() | 329 _reset: function() |
| 328 { | 330 { |
| 329 delete this.currentQuery; | 331 delete this.currentQuery; |
| 330 }, | 332 }, |
| (...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 964 this.sidebarPaneView.addPane(computedPane); | 966 this.sidebarPaneView.addPane(computedPane); |
| 965 } | 967 } |
| 966 | 968 |
| 967 this.sidebarPanes.styles.show(matchedStylePanesWrapper); | 969 this.sidebarPanes.styles.show(matchedStylePanesWrapper); |
| 968 this.sidebarPanes.computedStyle.show(computedStylePanesWrapper); | 970 this.sidebarPanes.computedStyle.show(computedStylePanesWrapper); |
| 969 matchedStylePanesWrapper.appendChild(this.sidebarPanes.styles.titleEleme
nt); | 971 matchedStylePanesWrapper.appendChild(this.sidebarPanes.styles.titleEleme
nt); |
| 970 showMetrics.call(this, vertically); | 972 showMetrics.call(this, vertically); |
| 971 this.sidebarPanes.platformFonts.show(computedStylePanesWrapper); | 973 this.sidebarPanes.platformFonts.show(computedStylePanesWrapper); |
| 972 | 974 |
| 973 this.sidebarPaneView.addPane(this.sidebarPanes.eventListeners); | 975 this.sidebarPaneView.addPane(this.sidebarPanes.eventListeners); |
| 976 this.sidebarPaneView.addPane(this.sidebarPanes.objectEventListeners); |
| 974 this.sidebarPaneView.addPane(this.sidebarPanes.domBreakpoints); | 977 this.sidebarPaneView.addPane(this.sidebarPanes.domBreakpoints); |
| 975 this.sidebarPaneView.addPane(this.sidebarPanes.properties); | 978 this.sidebarPaneView.addPane(this.sidebarPanes.properties); |
| 976 if (this.sidebarPanes.animations) | 979 if (this.sidebarPanes.animations) |
| 977 this.sidebarPaneView.addPane(this.sidebarPanes.animations); | 980 this.sidebarPaneView.addPane(this.sidebarPanes.animations); |
| 978 | 981 |
| 979 for (var sidebarViewWrapper of this._elementsSidebarViewWrappers) | 982 for (var sidebarViewWrapper of this._elementsSidebarViewWrappers) |
| 980 this.sidebarPaneView.addPane(sidebarViewWrapper); | 983 this.sidebarPaneView.addPane(sidebarViewWrapper); |
| 981 | 984 |
| 982 this._extensionSidebarPanesContainer = this.sidebarPaneView; | 985 this._extensionSidebarPanesContainer = this.sidebarPaneView; |
| 983 | 986 |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1115 WebInspector.ElementsPanelFactory.prototype = { | 1118 WebInspector.ElementsPanelFactory.prototype = { |
| 1116 /** | 1119 /** |
| 1117 * @override | 1120 * @override |
| 1118 * @return {!WebInspector.Panel} | 1121 * @return {!WebInspector.Panel} |
| 1119 */ | 1122 */ |
| 1120 createPanel: function() | 1123 createPanel: function() |
| 1121 { | 1124 { |
| 1122 return WebInspector.ElementsPanel.instance(); | 1125 return WebInspector.ElementsPanel.instance(); |
| 1123 } | 1126 } |
| 1124 } | 1127 } |
| OLD | NEW |