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

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

Issue 2604883002: DevTools: namespace globals (Closed)
Patch Set: address CL feedback 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.AXNodeSubPane = class extends Accessibility.AccessibilitySubPane { 7 Accessibility.AXNodeSubPane = class extends Accessibility.AccessibilitySubPane {
8 constructor() { 8 constructor() {
9 super(Common.UIString('Computed Properties')); 9 super(Common.UIString('Computed Properties'));
10 10
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 */ 108 */
109 setNode(node) { 109 setNode(node) {
110 super.setNode(node); 110 super.setNode(node);
111 this._axNode = null; 111 this._axNode = null;
112 } 112 }
113 }; 113 };
114 114
115 /** 115 /**
116 * @unrestricted 116 * @unrestricted
117 */ 117 */
118 Accessibility.AXNodePropertyTreeElement = class extends TreeElement { 118 Accessibility.AXNodePropertyTreeElement = class extends UI.TreeElement {
119 /** 119 /**
120 * @param {!Accessibility.AccessibilityNode} axNode 120 * @param {!Accessibility.AccessibilityNode} axNode
121 */ 121 */
122 constructor(axNode) { 122 constructor(axNode) {
123 // Pass an empty title, the title gets made later in onattach. 123 // Pass an empty title, the title gets made later in onattach.
124 super(''); 124 super('');
125 this._axNode = axNode; 125 this._axNode = axNode;
126 } 126 }
127 127
128 /** 128 /**
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 element = Accessibility.AXNodePropertyTreeElement.createSimpleValueElement (value.type, String(value.value)); 474 element = Accessibility.AXNodePropertyTreeElement.createSimpleValueElement (value.type, String(value.value));
475 this.listItemElement.appendChild(element); 475 this.listItemElement.appendChild(element);
476 } 476 }
477 return element; 477 return element;
478 } 478 }
479 }; 479 };
480 480
481 /** 481 /**
482 * @unrestricted 482 * @unrestricted
483 */ 483 */
484 Accessibility.AXRelatedNodeSourceTreeElement = class extends TreeElement { 484 Accessibility.AXRelatedNodeSourceTreeElement = class extends UI.TreeElement {
485 /** 485 /**
486 * @param {{deferredNode: (!SDK.DeferredDOMNode|undefined), idref: (string|und efined)}} node 486 * @param {{deferredNode: (!SDK.DeferredDOMNode|undefined), idref: (string|und efined)}} node
487 * @param {!Protocol.Accessibility.AXRelatedNode=} value 487 * @param {!Protocol.Accessibility.AXRelatedNode=} value
488 */ 488 */
489 constructor(node, value) { 489 constructor(node, value) {
490 super(''); 490 super('');
491 491
492 this._value = value; 492 this._value = value;
493 this._axRelatedNodeElement = new Accessibility.AXRelatedNodeElement(node, va lue); 493 this._axRelatedNodeElement = new Accessibility.AXRelatedNodeElement(node, va lue);
494 this.selectable = false; 494 this.selectable = false;
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 648
649 this._reasonElement = 649 this._reasonElement =
650 Accessibility.AXNodeIgnoredReasonTreeElement.createReasonElement(this._p roperty.name, this._axNode); 650 Accessibility.AXNodeIgnoredReasonTreeElement.createReasonElement(this._p roperty.name, this._axNode);
651 this.listItemElement.appendChild(this._reasonElement); 651 this.listItemElement.appendChild(this._reasonElement);
652 652
653 var value = this._property.value; 653 var value = this._property.value;
654 if (value.type === Protocol.Accessibility.AXValueType.Idref) 654 if (value.type === Protocol.Accessibility.AXValueType.Idref)
655 this.appendRelatedNodeListValueElement(value); 655 this.appendRelatedNodeListValueElement(value);
656 } 656 }
657 }; 657 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698