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

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

Issue 2778283002: [DevTools] Do not inherit SDK.DOMNode from SDK.SDKObject (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 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 * @protected 61 * @protected
62 * @return {!Promise.<?>} 62 * @return {!Promise.<?>}
63 */ 63 */
64 doUpdate() { 64 doUpdate() {
65 var node = this.node(); 65 var node = this.node();
66 this._treeSubPane.setNode(node); 66 this._treeSubPane.setNode(node);
67 this._axNodeSubPane.setNode(node); 67 this._axNodeSubPane.setNode(node);
68 this._ariaSubPane.setNode(node); 68 this._ariaSubPane.setNode(node);
69 if (!node) 69 if (!node)
70 return Promise.resolve(); 70 return Promise.resolve();
71 var accessibilityModel = Accessibility.AccessibilityModel.fromTarget(node.ta rget()); 71 var accessibilityModel = Accessibility.AccessibilityModel.fromTarget(node.do mModel().target());
72 accessibilityModel.clear(); 72 accessibilityModel.clear();
73 return accessibilityModel.requestPartialAXTree(node).then(() => { 73 return accessibilityModel.requestPartialAXTree(node).then(() => {
74 this.accessibilityNodeCallback(accessibilityModel.axNodeForDOMNode(node)); 74 this.accessibilityNodeCallback(accessibilityModel.axNodeForDOMNode(node));
75 }); 75 });
76 } 76 }
77 77
78 /** 78 /**
79 * @override 79 * @override
80 */ 80 */
81 wasShown() { 81 wasShown() {
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 createTreeOutline() { 187 createTreeOutline() {
188 var treeOutline = new UI.TreeOutlineInShadow(); 188 var treeOutline = new UI.TreeOutlineInShadow();
189 treeOutline.registerRequiredCSS('accessibility/accessibilityNode.css'); 189 treeOutline.registerRequiredCSS('accessibility/accessibilityNode.css');
190 treeOutline.registerRequiredCSS('object_ui/objectValue.css'); 190 treeOutline.registerRequiredCSS('object_ui/objectValue.css');
191 191
192 treeOutline.element.classList.add('hidden'); 192 treeOutline.element.classList.add('hidden');
193 this.element.appendChild(treeOutline.element); 193 this.element.appendChild(treeOutline.element);
194 return treeOutline; 194 return treeOutline;
195 } 195 }
196 }; 196 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698