| 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.ThrottledView} | 7 * @extends {WebInspector.ThrottledView} |
| 8 */ | 8 */ |
| 9 WebInspector.AccessibilitySidebarView = function() | 9 WebInspector.AccessibilitySidebarView = function() |
| 10 { | 10 { |
| 11 WebInspector.ThrottledView.call(this, WebInspector.UIString("Accessibility")
); | 11 WebInspector.ThrottledView.call(this, WebInspector.UIString("Accessibility")
); |
| 12 this._node = null; | 12 this._node = null; |
| 13 this._sidebarPaneStack = new WebInspector.View.ExpandableStackContainer(); | 13 this._sidebarPaneStack = WebInspector.viewManager.createStackLocation(); |
| 14 this._ariaSubPane = new WebInspector.ARIAAttributesPane(); | 14 this._ariaSubPane = new WebInspector.ARIAAttributesPane(); |
| 15 this._sidebarPaneStack.appendView(this._ariaSubPane, true); | 15 this._sidebarPaneStack.showView(this._ariaSubPane); |
| 16 this._axNodeSubPane = new WebInspector.AXNodeSubPane(); | 16 this._axNodeSubPane = new WebInspector.AXNodeSubPane(); |
| 17 this._sidebarPaneStack.appendView(this._axNodeSubPane, true); | 17 this._sidebarPaneStack.showView(this._axNodeSubPane); |
| 18 this._sidebarPaneStack.show(this.element); | 18 this._sidebarPaneStack.widget().show(this.element); |
| 19 WebInspector.context.addFlavorChangeListener(WebInspector.DOMNode, this._pul
lNode, this); | 19 WebInspector.context.addFlavorChangeListener(WebInspector.DOMNode, this._pul
lNode, this); |
| 20 this._pullNode(); | 20 this._pullNode(); |
| 21 } | 21 } |
| 22 | 22 |
| 23 WebInspector.AccessibilitySidebarView.prototype = { | 23 WebInspector.AccessibilitySidebarView.prototype = { |
| 24 /** | 24 /** |
| 25 * @return {?WebInspector.DOMNode} | 25 * @return {?WebInspector.DOMNode} |
| 26 */ | 26 */ |
| 27 node: function() | 27 node: function() |
| 28 { | 28 { |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 return; | 116 return; |
| 117 this.update(); | 117 this.update(); |
| 118 }, | 118 }, |
| 119 | 119 |
| 120 | 120 |
| 121 __proto__: WebInspector.ThrottledView.prototype | 121 __proto__: WebInspector.ThrottledView.prototype |
| 122 }; | 122 }; |
| 123 | 123 |
| 124 /** | 124 /** |
| 125 * @constructor | 125 * @constructor |
| 126 * @extends {WebInspector.View} | 126 * @extends {WebInspector.SimpleView} |
| 127 * @param {string} name | 127 * @param {string} name |
| 128 */ | 128 */ |
| 129 WebInspector.AccessibilitySubPane = function(name) | 129 WebInspector.AccessibilitySubPane = function(name) |
| 130 { | 130 { |
| 131 WebInspector.View.call(this, name); | 131 WebInspector.SimpleView.call(this, name); |
| 132 | 132 |
| 133 this._axNode = null; | 133 this._axNode = null; |
| 134 this.registerRequiredCSS("accessibility/accessibilityNode.css"); | 134 this.registerRequiredCSS("accessibility/accessibilityNode.css"); |
| 135 } | 135 } |
| 136 | 136 |
| 137 WebInspector.AccessibilitySubPane.prototype = { | 137 WebInspector.AccessibilitySubPane.prototype = { |
| 138 /** | 138 /** |
| 139 * @param {?AccessibilityAgent.AXNode} axNode | 139 * @param {?AccessibilityAgent.AXNode} axNode |
| 140 * @protected | 140 * @protected |
| 141 */ | 141 */ |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 { | 179 { |
| 180 var treeOutline = new TreeOutlineInShadow(); | 180 var treeOutline = new TreeOutlineInShadow(); |
| 181 treeOutline.registerRequiredCSS("accessibility/accessibilityNode.css"); | 181 treeOutline.registerRequiredCSS("accessibility/accessibilityNode.css"); |
| 182 treeOutline.registerRequiredCSS("components/objectValue.css"); | 182 treeOutline.registerRequiredCSS("components/objectValue.css"); |
| 183 | 183 |
| 184 treeOutline.element.classList.add("hidden"); | 184 treeOutline.element.classList.add("hidden"); |
| 185 this.element.appendChild(treeOutline.element); | 185 this.element.appendChild(treeOutline.element); |
| 186 return treeOutline; | 186 return treeOutline; |
| 187 }, | 187 }, |
| 188 | 188 |
| 189 __proto__: WebInspector.View.prototype | 189 __proto__: WebInspector.SimpleView.prototype |
| 190 } | 190 } |
| OLD | NEW |