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

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

Issue 2958173003: [DevTools] Show ARIA pane based on whether AXNode is DOM node (Closed)
Patch Set: Created 3 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 };
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698