| 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 */ |
| 11 constructor(axSidebarView) { | 11 constructor(axSidebarView) { |
| 12 super(Common.UIString('Accessibility Tree')); | 12 super(Common.UIString('Accessibility Tree')); |
| 13 | 13 |
| 14 this._axSidebarView = axSidebarView; | 14 this._axSidebarView = axSidebarView; |
| 15 this._treeOutline = this.createTreeOutline(); | 15 this._treeOutline = this.createTreeOutline(); |
| 16 this._treeOutline.setPaddingSize(12); |
| 16 | 17 |
| 17 this.element.classList.add('accessibility-computed'); | 18 this.element.classList.add('accessibility-computed'); |
| 18 | 19 |
| 19 this._expandedNodes = new Set(); | 20 this._expandedNodes = new Set(); |
| 20 } | 21 } |
| 21 | 22 |
| 22 /** | 23 /** |
| 23 * @param {?Accessibility.AccessibilityNode} axNode | 24 * @param {?Accessibility.AccessibilityNode} axNode |
| 24 * @override | 25 * @override |
| 25 */ | 26 */ |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 continue; | 429 continue; |
| 429 } | 430 } |
| 430 siblingTreeElement = new Accessibility.AXNodeTreeElement(sibling, this._tr
eePane); | 431 siblingTreeElement = new Accessibility.AXNodeTreeElement(sibling, this._tr
eePane); |
| 431 if (foundInspectedNode) | 432 if (foundInspectedNode) |
| 432 this.appendChild(siblingTreeElement); | 433 this.appendChild(siblingTreeElement); |
| 433 else | 434 else |
| 434 this.insertChild(siblingTreeElement, nextIndex++); | 435 this.insertChild(siblingTreeElement, nextIndex++); |
| 435 } | 436 } |
| 436 } | 437 } |
| 437 }; | 438 }; |
| OLD | NEW |