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 { |
11 WebInspector.ThrottledWidget.call(this); | 11 WebInspector.ThrottledWidget.call(this); |
12 this._node = null; | 12 this._node = null; |
13 this._axNode = null; | 13 this._axNode = null; |
14 this._sidebarPaneStack = WebInspector.viewManager.createStackLocation(); | 14 this._sidebarPaneStack = WebInspector.viewManager.createStackLocation(); |
15 this._treeSubPane = new WebInspector.AXTreePane(); | 15 this._treeSubPane = new WebInspector.AXTreePane(); |
16 this._sidebarPaneStack.showView(this._treeSubPane); | 16 this._sidebarPaneStack.showView(this._treeSubPane); |
17 this._ariaSubPane = new WebInspector.ARIAAttributesPane(); | 17 this._ariaSubPane = new WebInspector.ARIAAttributesPane(); |
18 this._sidebarPaneStack.showView(this._ariaSubPane); | 18 this._sidebarPaneStack.showView(this._ariaSubPane); |
19 this._axNodeSubPane = new WebInspector.AXNodeSubPane(); | 19 this._axNodeSubPane = new WebInspector.AXNodeSubPane(); |
20 this._sidebarPaneStack.showView(this._axNodeSubPane); | 20 this._sidebarPaneStack.showView(this._axNodeSubPane); |
21 this._sidebarPaneStack.widget().show(this.element); | 21 this._sidebarPaneStack.widget().show(this.element); |
22 WebInspector.context.addFlavorChangeListener(WebInspector.DOMNode, this._pul
lNode, this); | 22 WebInspector.context.addFlavorChangeListener(WebInspector.DOMNode, this._pul
lNode, this); |
23 this._pullNode(); | 23 this._pullNode(); |
24 } | 24 }; |
25 | 25 |
26 WebInspector.AccessibilitySidebarView.prototype = { | 26 WebInspector.AccessibilitySidebarView.prototype = { |
27 /** | 27 /** |
28 * @return {?WebInspector.DOMNode} | 28 * @return {?WebInspector.DOMNode} |
29 */ | 29 */ |
30 node: function() | 30 node: function() |
31 { | 31 { |
32 return this._node; | 32 return this._node; |
33 }, | 33 }, |
34 | 34 |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 * @constructor | 135 * @constructor |
136 * @extends {WebInspector.SimpleView} | 136 * @extends {WebInspector.SimpleView} |
137 * @param {string} name | 137 * @param {string} name |
138 */ | 138 */ |
139 WebInspector.AccessibilitySubPane = function(name) | 139 WebInspector.AccessibilitySubPane = function(name) |
140 { | 140 { |
141 WebInspector.SimpleView.call(this, name); | 141 WebInspector.SimpleView.call(this, name); |
142 | 142 |
143 this._axNode = null; | 143 this._axNode = null; |
144 this.registerRequiredCSS("accessibility/accessibilityNode.css"); | 144 this.registerRequiredCSS("accessibility/accessibilityNode.css"); |
145 } | 145 }; |
146 | 146 |
147 WebInspector.AccessibilitySubPane.prototype = { | 147 WebInspector.AccessibilitySubPane.prototype = { |
148 /** | 148 /** |
149 * @param {?WebInspector.AccessibilityNode} axNode | 149 * @param {?WebInspector.AccessibilityNode} axNode |
150 * @protected | 150 * @protected |
151 */ | 151 */ |
152 setAXNode: function(axNode) | 152 setAXNode: function(axNode) |
153 { | 153 { |
154 }, | 154 }, |
155 | 155 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 var treeOutline = new TreeOutlineInShadow(); | 190 var treeOutline = new TreeOutlineInShadow(); |
191 treeOutline.registerRequiredCSS("accessibility/accessibilityNode.css"); | 191 treeOutline.registerRequiredCSS("accessibility/accessibilityNode.css"); |
192 treeOutline.registerRequiredCSS("components/objectValue.css"); | 192 treeOutline.registerRequiredCSS("components/objectValue.css"); |
193 | 193 |
194 treeOutline.element.classList.add("hidden"); | 194 treeOutline.element.classList.add("hidden"); |
195 this.element.appendChild(treeOutline.element); | 195 this.element.appendChild(treeOutline.element); |
196 return treeOutline; | 196 return treeOutline; |
197 }, | 197 }, |
198 | 198 |
199 __proto__: WebInspector.SimpleView.prototype | 199 __proto__: WebInspector.SimpleView.prototype |
200 } | 200 }; |
OLD | NEW |