OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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.AXTreePane = class extends Accessibility.AccessibilitySubPane { | 7 Accessibility.AXTreePane = class extends Accessibility.AccessibilitySubPane { |
8 /** | 8 /** |
9 * @param {!Accessibility.AccessibilitySidebarView} axSidebarView | 9 * @param {!Accessibility.AccessibilitySidebarView} axSidebarView |
10 */ | 10 */ |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 setHoveredElement(treeElement) { | 150 setHoveredElement(treeElement) { |
151 if (treeElement === this._hoveredElement) | 151 if (treeElement === this._hoveredElement) |
152 return; | 152 return; |
153 if (this._hoveredElement) | 153 if (this._hoveredElement) |
154 this._hoveredElement.setHovered(false); | 154 this._hoveredElement.setHovered(false); |
155 this._hoveredElement = treeElement; | 155 this._hoveredElement = treeElement; |
156 if (!this._hoveredElement) { | 156 if (!this._hoveredElement) { |
157 if (!this.node()) | 157 if (!this.node()) |
158 return; | 158 return; |
159 // Highlight and scroll into view the currently inspected node. | 159 // Highlight and scroll into view the currently inspected node. |
160 this.node().domModel().nodeHighlightRequested(this.node().id); | 160 this.node().domModel().overlayModel().nodeHighlightRequested(this.node().i
d); |
161 } | 161 } |
162 } | 162 } |
163 | 163 |
164 /** | 164 /** |
165 * @param {!Accessibility.AccessibilityNode} axNode | 165 * @param {!Accessibility.AccessibilityNode} axNode |
166 */ | 166 */ |
167 setInspectedNode(axNode) { | 167 setInspectedNode(axNode) { |
168 var axSidebarView = this._axSidebarView; | 168 var axSidebarView = this._axSidebarView; |
169 if (axNode.parentNode()) { | 169 if (axNode.parentNode()) { |
170 var inspectedDOMNode = UI.context.flavor(SDK.DOMNode); | 170 var inspectedDOMNode = UI.context.flavor(SDK.DOMNode); |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 | 506 |
507 return super.select(omitFocus, selectedByUser); | 507 return super.select(omitFocus, selectedByUser); |
508 } | 508 } |
509 }; | 509 }; |
510 | 510 |
511 /** @type {!Object<string, string>} */ | 511 /** @type {!Object<string, string>} */ |
512 Accessibility.AXNodeTreeElement.RoleStyles = { | 512 Accessibility.AXNodeTreeElement.RoleStyles = { |
513 internalRole: 'ax-internal-role', | 513 internalRole: 'ax-internal-role', |
514 role: 'ax-role', | 514 role: 'ax-role', |
515 }; | 515 }; |
OLD | NEW |