| 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 28 matching lines...) Expand all Loading... |
| 39 /** | 39 /** |
| 40 * @param {?AccessibilityAgent.AXNode} accessibilityNode | 40 * @param {?AccessibilityAgent.AXNode} accessibilityNode |
| 41 * @this {WebInspector.AccessibilitySidebarView} | 41 * @this {WebInspector.AccessibilitySidebarView} |
| 42 */ | 42 */ |
| 43 function accessibilityNodeCallback(accessibilityNode) | 43 function accessibilityNodeCallback(accessibilityNode) |
| 44 { | 44 { |
| 45 if (this._axNodeSubPane) | 45 if (this._axNodeSubPane) |
| 46 this._axNodeSubPane.setAXNode(accessibilityNode); | 46 this._axNodeSubPane.setAXNode(accessibilityNode); |
| 47 } | 47 } |
| 48 var node = this.node(); | 48 var node = this.node(); |
| 49 this._ariaSubPane.setNode(node); |
| 49 return WebInspector.AccessibilityModel.fromTarget(node.target()).getAXNo
de(node.id) | 50 return WebInspector.AccessibilityModel.fromTarget(node.target()).getAXNo
de(node.id) |
| 50 .then(accessibilityNodeCallback.bind(this)) | 51 .then(accessibilityNodeCallback.bind(this)); |
| 51 }, | 52 }, |
| 52 | 53 |
| 53 /** | 54 /** |
| 54 * @override | 55 * @override |
| 55 */ | 56 */ |
| 56 wasShown: function() | 57 wasShown: function() |
| 57 { | 58 { |
| 58 WebInspector.ThrottledWidget.prototype.wasShown.call(this); | 59 WebInspector.ThrottledWidget.prototype.wasShown.call(this); |
| 59 | 60 |
| 60 this._axNodeSubPane.setNode(this.node()); | 61 this._axNodeSubPane.setNode(this.node()); |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 treeOutline.registerRequiredCSS("accessibility/accessibilityNode.css"); | 176 treeOutline.registerRequiredCSS("accessibility/accessibilityNode.css"); |
| 176 treeOutline.registerRequiredCSS("components/objectValue.css"); | 177 treeOutline.registerRequiredCSS("components/objectValue.css"); |
| 177 | 178 |
| 178 treeOutline.element.classList.add("hidden"); | 179 treeOutline.element.classList.add("hidden"); |
| 179 this.element.appendChild(treeOutline.element); | 180 this.element.appendChild(treeOutline.element); |
| 180 return treeOutline; | 181 return treeOutline; |
| 181 }, | 182 }, |
| 182 | 183 |
| 183 __proto__: WebInspector.SimpleView.prototype | 184 __proto__: WebInspector.SimpleView.prototype |
| 184 } | 185 } |
| OLD | NEW |