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

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: dgozman 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 */
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 // Pass an empty title, the title gets made later in onattach. 172 // Pass an empty title, the title gets made later in onattach.
173 super(''); 173 super('');
174 174
175 /** @type {!Accessibility.AccessibilityNode} */ 175 /** @type {!Accessibility.AccessibilityNode} */
176 this._axNode = axNode; 176 this._axNode = axNode;
177 177
178 /** @type {!Accessibility.AXTreePane} */ 178 /** @type {!Accessibility.AXTreePane} */
179 this._treePane = treePane; 179 this._treePane = treePane;
180 180
181 this.selectable = true; 181 this.selectable = true;
182 this.paddingSize = 12;
182 183
183 this._inspectNodeButton = new Accessibility.InspectNodeButton(axNode, treePa ne); 184 this._inspectNodeButton = new Accessibility.InspectNodeButton(axNode, treePa ne);
184 } 185 }
185 186
186 /** 187 /**
187 * @return {!Accessibility.AccessibilityNode} 188 * @return {!Accessibility.AccessibilityNode}
188 */ 189 */
189 axNode() { 190 axNode() {
190 return this._axNode; 191 return this._axNode;
191 } 192 }
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698