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

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

Issue 2623053002: [Devtools] Fix left margin for selection element (Closed)
Patch Set: more comments Created 3 years, 11 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 */
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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 // Pass an empty title, the title gets made later in onattach. 173 // Pass an empty title, the title gets made later in onattach.
173 super(''); 174 super('');
174 175
175 /** @type {!Accessibility.AccessibilityNode} */ 176 /** @type {!Accessibility.AccessibilityNode} */
176 this._axNode = axNode; 177 this._axNode = axNode;
177 178
178 /** @type {!Accessibility.AXTreePane} */ 179 /** @type {!Accessibility.AXTreePane} */
179 this._treePane = treePane; 180 this._treePane = treePane;
180 181
181 this.selectable = true; 182 this.selectable = true;
183 this.paddingSize = 12;
dgozman 2017/01/19 23:12:45 Remove.
aboxhall 2017/01/20 04:25:00 Done.
182 184
183 this._inspectNodeButton = new Accessibility.InspectNodeButton(axNode, treePa ne); 185 this._inspectNodeButton = new Accessibility.InspectNodeButton(axNode, treePa ne);
184 } 186 }
185 187
186 /** 188 /**
187 * @return {!Accessibility.AccessibilityNode} 189 * @return {!Accessibility.AccessibilityNode}
188 */ 190 */
189 axNode() { 191 axNode() {
190 return this._axNode; 192 return this._axNode;
191 } 193 }
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 continue; 430 continue;
429 } 431 }
430 siblingTreeElement = new Accessibility.AXNodeTreeElement(sibling, this._tr eePane); 432 siblingTreeElement = new Accessibility.AXNodeTreeElement(sibling, this._tr eePane);
431 if (foundInspectedNode) 433 if (foundInspectedNode)
432 this.appendChild(siblingTreeElement); 434 this.appendChild(siblingTreeElement);
433 else 435 else
434 this.insertChild(siblingTreeElement, nextIndex++); 436 this.insertChild(siblingTreeElement, nextIndex++);
435 } 437 }
436 } 438 }
437 }; 439 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698