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 /** | 5 /** |
6 * @constructor | 6 * @constructor |
7 * @extends {WebInspector.AccessibilitySubPane} | 7 * @extends {WebInspector.AccessibilitySubPane} |
8 */ | 8 */ |
9 WebInspector.AXNodeSubPane = function() | 9 WebInspector.AXNodeSubPane = function() |
10 { | 10 { |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 * @param {!WebInspector.AccessibilityNode} axNode | 294 * @param {!WebInspector.AccessibilityNode} axNode |
295 */ | 295 */ |
296 WebInspector.AXNodePropertyTreePropertyElement = function(property, axNode) | 296 WebInspector.AXNodePropertyTreePropertyElement = function(property, axNode) |
297 { | 297 { |
298 this._property = property; | 298 this._property = property; |
299 this.toggleOnClick = true; | 299 this.toggleOnClick = true; |
300 this.selectable = false; | 300 this.selectable = false; |
301 | 301 |
302 WebInspector.AXNodePropertyTreeElement.call(this, axNode); | 302 WebInspector.AXNodePropertyTreeElement.call(this, axNode); |
303 this.listItemElement.classList.add("property"); | 303 this.listItemElement.classList.add("property"); |
304 } | 304 }; |
305 | 305 |
306 WebInspector.AXNodePropertyTreePropertyElement.prototype = { | 306 WebInspector.AXNodePropertyTreePropertyElement.prototype = { |
307 /** | 307 /** |
308 * @override | 308 * @override |
309 */ | 309 */ |
310 onattach: function() | 310 onattach: function() |
311 { | 311 { |
312 this._update(); | 312 this._update(); |
313 }, | 313 }, |
314 | 314 |
(...skipping 17 matching lines...) Expand all Loading... |
332 * @constructor | 332 * @constructor |
333 * @extends {WebInspector.AXNodePropertyTreeElement} | 333 * @extends {WebInspector.AXNodePropertyTreeElement} |
334 * @param {!AccessibilityAgent.AXValueSource} source | 334 * @param {!AccessibilityAgent.AXValueSource} source |
335 * @param {!WebInspector.AccessibilityNode} axNode | 335 * @param {!WebInspector.AccessibilityNode} axNode |
336 */ | 336 */ |
337 WebInspector.AXValueSourceTreeElement = function(source, axNode) | 337 WebInspector.AXValueSourceTreeElement = function(source, axNode) |
338 { | 338 { |
339 this._source = source; | 339 this._source = source; |
340 WebInspector.AXNodePropertyTreeElement.call(this, axNode); | 340 WebInspector.AXNodePropertyTreeElement.call(this, axNode); |
341 this.selectable = false; | 341 this.selectable = false; |
342 } | 342 }; |
343 | 343 |
344 WebInspector.AXValueSourceTreeElement.prototype = { | 344 WebInspector.AXValueSourceTreeElement.prototype = { |
345 /** | 345 /** |
346 * @override | 346 * @override |
347 */ | 347 */ |
348 onattach: function() | 348 onattach: function() |
349 { | 349 { |
350 this._update(); | 350 this._update(); |
351 }, | 351 }, |
352 | 352 |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
593 * @param {!WebInspector.AccessibilityNode} axNode | 593 * @param {!WebInspector.AccessibilityNode} axNode |
594 */ | 594 */ |
595 WebInspector.AXNodeIgnoredReasonTreeElement = function(property, axNode) | 595 WebInspector.AXNodeIgnoredReasonTreeElement = function(property, axNode) |
596 { | 596 { |
597 this._property = property; | 597 this._property = property; |
598 this._axNode = axNode; | 598 this._axNode = axNode; |
599 | 599 |
600 WebInspector.AXNodePropertyTreeElement.call(this, axNode); | 600 WebInspector.AXNodePropertyTreeElement.call(this, axNode); |
601 this.toggleOnClick = true; | 601 this.toggleOnClick = true; |
602 this.selectable = false; | 602 this.selectable = false; |
603 } | 603 }; |
604 | 604 |
605 WebInspector.AXNodeIgnoredReasonTreeElement.prototype = { | 605 WebInspector.AXNodeIgnoredReasonTreeElement.prototype = { |
606 /** | 606 /** |
607 * @override | 607 * @override |
608 */ | 608 */ |
609 onattach: function() | 609 onattach: function() |
610 { | 610 { |
611 this.listItemElement.removeChildren(); | 611 this.listItemElement.removeChildren(); |
612 | 612 |
613 this._reasonElement = WebInspector.AXNodeIgnoredReasonTreeElement.create
ReasonElement(this._property.name, this._axNode); | 613 this._reasonElement = WebInspector.AXNodeIgnoredReasonTreeElement.create
ReasonElement(this._property.name, this._axNode); |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
684 reasonElement = WebInspector.formatLocalized("Static text node is used a
s name for\u00a0", []); | 684 reasonElement = WebInspector.formatLocalized("Static text node is used a
s name for\u00a0", []); |
685 break; | 685 break; |
686 case "uninteresting": | 686 case "uninteresting": |
687 reasonElement = WebInspector.formatLocalized("Element not interesting fo
r accessibility.", []); | 687 reasonElement = WebInspector.formatLocalized("Element not interesting fo
r accessibility.", []); |
688 break; | 688 break; |
689 } | 689 } |
690 if (reasonElement) | 690 if (reasonElement) |
691 reasonElement.classList.add("ax-reason"); | 691 reasonElement.classList.add("ax-reason"); |
692 return reasonElement; | 692 return reasonElement; |
693 }; | 693 }; |
OLD | NEW |