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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/accessibility/AXTreePane.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 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 } 175 }
176 176
177 clearSelectedByUser() { 177 clearSelectedByUser() {
178 delete this._selectedByUser; 178 delete this._selectedByUser;
179 } 179 }
180 180
181 /** 181 /**
182 * @return {!SDK.Target} 182 * @return {!SDK.Target}
183 */ 183 */
184 target() { 184 target() {
185 return this.node().target(); 185 return this.node().domModel().target();
186 } 186 }
187 }; 187 };
188 188
189 /** 189 /**
190 * @unrestricted 190 * @unrestricted
191 */ 191 */
192 Accessibility.AXNodeTreeElement = class extends UI.TreeElement { 192 Accessibility.AXNodeTreeElement = class extends UI.TreeElement {
193 /** 193 /**
194 * @param {!Accessibility.AccessibilityNode} axNode 194 * @param {!Accessibility.AccessibilityNode} axNode
195 * @param {!Accessibility.AXTreePane} treePane 195 * @param {!Accessibility.AXTreePane} treePane
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 481
482 return super.select(omitFocus, selectedByUser); 482 return super.select(omitFocus, selectedByUser);
483 } 483 }
484 }; 484 };
485 485
486 /** @type {!Object<string, string>} */ 486 /** @type {!Object<string, string>} */
487 Accessibility.AXNodeTreeElement.RoleStyles = { 487 Accessibility.AXNodeTreeElement.RoleStyles = {
488 internalRole: 'ax-internal-role', 488 internalRole: 'ax-internal-role',
489 role: 'ax-role', 489 role: 'ax-role',
490 }; 490 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698