Chromium Code Reviews| 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 * @unrestricted | 5 * @unrestricted |
| 6 */ | 6 */ |
| 7 Accessibility.AccessibilitySidebarView = class extends UI.ThrottledWidget { | 7 Accessibility.AccessibilitySidebarView = class extends UI.ThrottledWidget { |
| 8 constructor() { | 8 constructor() { |
| 9 super(); | 9 super(); |
| 10 this._node = null; | 10 this._node = null; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 45 | 45 |
| 46 /** | 46 /** |
| 47 * @param {?Accessibility.AccessibilityNode} axNode | 47 * @param {?Accessibility.AccessibilityNode} axNode |
| 48 */ | 48 */ |
| 49 accessibilityNodeCallback(axNode) { | 49 accessibilityNodeCallback(axNode) { |
| 50 if (!axNode) | 50 if (!axNode) |
| 51 return; | 51 return; |
| 52 | 52 |
| 53 this._axNode = axNode; | 53 this._axNode = axNode; |
| 54 | 54 |
| 55 if (axNode.ignored()) | 55 if (axNode.isDOMNode()) |
|
lushnikov
2017/06/28 18:21:00
What is "ignored" axNode? Should the condition be
aboxhall
2017/06/28 21:06:32
I deliberately removed that. Ignored means there i
| |
| 56 this._sidebarPaneStack.showView(this._ariaSubPane, this._axNodeSubPane); | |
| 57 else | |
| 56 this._sidebarPaneStack.removeView(this._ariaSubPane); | 58 this._sidebarPaneStack.removeView(this._ariaSubPane); |
| 57 else | |
| 58 this._sidebarPaneStack.showView(this._ariaSubPane, this._axNodeSubPane); | |
| 59 | 59 |
| 60 if (this._axNodeSubPane) | 60 if (this._axNodeSubPane) |
| 61 this._axNodeSubPane.setAXNode(axNode); | 61 this._axNodeSubPane.setAXNode(axNode); |
| 62 if (this._breadcrumbsSubPane) | 62 if (this._breadcrumbsSubPane) |
| 63 this._breadcrumbsSubPane.setAXNode(axNode); | 63 this._breadcrumbsSubPane.setAXNode(axNode); |
| 64 } | 64 } |
| 65 | 65 |
| 66 /** | 66 /** |
| 67 * @override | 67 * @override |
| 68 * @protected | 68 * @protected |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 195 createTreeOutline() { | 195 createTreeOutline() { |
| 196 var treeOutline = new UI.TreeOutlineInShadow(); | 196 var treeOutline = new UI.TreeOutlineInShadow(); |
| 197 treeOutline.registerRequiredCSS('accessibility/accessibilityNode.css'); | 197 treeOutline.registerRequiredCSS('accessibility/accessibilityNode.css'); |
| 198 treeOutline.registerRequiredCSS('object_ui/objectValue.css'); | 198 treeOutline.registerRequiredCSS('object_ui/objectValue.css'); |
| 199 | 199 |
| 200 treeOutline.element.classList.add('hidden'); | 200 treeOutline.element.classList.add('hidden'); |
| 201 this.element.appendChild(treeOutline.element); | 201 this.element.appendChild(treeOutline.element); |
| 202 return treeOutline; | 202 return treeOutline; |
| 203 } | 203 } |
| 204 }; | 204 }; |
| OLD | NEW |