Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(187)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/accessibility/AXTreePane.js

Issue 2835843002: Revert of [DevTools] Consolidate overlay-related functionality in Overlay domain (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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().overlayModel().nodeHighlightRequested(this.node().i d); 160 this.node().domModel().nodeHighlightRequested(this.node().id);
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
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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698