OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * @constructor | 6 * @constructor |
7 * @extends {WebInspector.ThrottledWidget} | 7 * @extends {WebInspector.ThrottledWidget} |
8 */ | 8 */ |
9 WebInspector.AccessibilitySidebarView = function() | 9 WebInspector.AccessibilitySidebarView = function() |
10 { | 10 { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 * @override | 50 * @override |
51 */ | 51 */ |
52 wasShown: function() | 52 wasShown: function() |
53 { | 53 { |
54 WebInspector.ThrottledWidget.prototype.wasShown.call(this); | 54 WebInspector.ThrottledWidget.prototype.wasShown.call(this); |
55 | 55 |
56 if (!this._sidebarPaneStack) { | 56 if (!this._sidebarPaneStack) { |
57 this._axNodeSubPane = new WebInspector.AXNodeSubPane(); | 57 this._axNodeSubPane = new WebInspector.AXNodeSubPane(); |
58 this._axNodeSubPane.setNode(this.node()); | 58 this._axNodeSubPane.setNode(this.node()); |
59 this._axNodeSubPane.show(this.element); | 59 this._axNodeSubPane.show(this.element); |
60 this._axNodeSubPane.expand(); | 60 this._axNodeSubPane.expandPane(); |
61 | 61 |
62 this._sidebarPaneStack = new WebInspector.SidebarPaneStack(); | 62 this._sidebarPaneStack = new WebInspector.SidebarPaneStack(); |
63 this._sidebarPaneStack.element.classList.add("flex-auto"); | 63 this._sidebarPaneStack.element.classList.add("flex-auto"); |
64 this._sidebarPaneStack.show(this.element); | 64 this._sidebarPaneStack.show(this.element); |
65 this._sidebarPaneStack.addPane(this._axNodeSubPane); | 65 this._sidebarPaneStack.addPane(this._axNodeSubPane); |
66 } | 66 } |
67 | 67 |
68 WebInspector.targetManager.addModelListener(WebInspector.DOMModel, WebIn
spector.DOMModel.Events.AttrModified, this._onAttrChange, this); | 68 WebInspector.targetManager.addModelListener(WebInspector.DOMModel, WebIn
spector.DOMModel.Events.AttrModified, this._onAttrChange, this); |
69 WebInspector.targetManager.addModelListener(WebInspector.DOMModel, WebIn
spector.DOMModel.Events.AttrRemoved, this._onAttrChange, this); | 69 WebInspector.targetManager.addModelListener(WebInspector.DOMModel, WebIn
spector.DOMModel.Events.AttrRemoved, this._onAttrChange, this); |
70 WebInspector.targetManager.addModelListener(WebInspector.DOMModel, WebIn
spector.DOMModel.Events.CharacterDataModified, this._onNodeChange, this); | 70 WebInspector.targetManager.addModelListener(WebInspector.DOMModel, WebIn
spector.DOMModel.Events.CharacterDataModified, this._onNodeChange, this); |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 treeOutline.registerRequiredCSS("accessibility/accessibilityNode.css"); | 180 treeOutline.registerRequiredCSS("accessibility/accessibilityNode.css"); |
181 treeOutline.registerRequiredCSS("components/objectValue.css"); | 181 treeOutline.registerRequiredCSS("components/objectValue.css"); |
182 | 182 |
183 treeOutline.element.classList.add("hidden"); | 183 treeOutline.element.classList.add("hidden"); |
184 this.element.appendChild(treeOutline.element); | 184 this.element.appendChild(treeOutline.element); |
185 return treeOutline; | 185 return treeOutline; |
186 }, | 186 }, |
187 | 187 |
188 __proto__: WebInspector.SidebarPane.prototype | 188 __proto__: WebInspector.SidebarPane.prototype |
189 } | 189 } |
OLD | NEW |