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.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 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 case 'activeModalDialog': | 564 case 'activeModalDialog': |
565 reasonElement = UI.formatLocalized('Element is hidden by active modal di
alog:\u00a0', []); | 565 reasonElement = UI.formatLocalized('Element is hidden by active modal di
alog:\u00a0', []); |
566 break; | 566 break; |
567 case 'ancestorDisallowsChild': | 567 case 'ancestorDisallowsChild': |
568 reasonElement = UI.formatLocalized('Element is not permitted as child of
', []); | 568 reasonElement = UI.formatLocalized('Element is not permitted as child of
', []); |
569 break; | 569 break; |
570 // http://www.w3.org/TR/wai-aria/roles#childrenArePresentational | 570 // http://www.w3.org/TR/wai-aria/roles#childrenArePresentational |
571 case 'ancestorIsLeafNode': | 571 case 'ancestorIsLeafNode': |
572 reasonElement = UI.formatLocalized('Ancestor\'s children are all present
ational:\u00a0', []); | 572 reasonElement = UI.formatLocalized('Ancestor\'s children are all present
ational:\u00a0', []); |
573 break; | 573 break; |
574 case 'ariaHidden': | 574 case 'ariaHiddenElement': |
575 var ariaHiddenSpan = createElement('span', 'source-code').textContent =
'aria-hidden'; | 575 var ariaHiddenSpan = createElement('span', 'source-code').textContent =
'aria-hidden'; |
576 reasonElement = UI.formatLocalized('Element is %s.', [ariaHiddenSpan]); | 576 reasonElement = UI.formatLocalized('Element is %s.', [ariaHiddenSpan]); |
577 break; | 577 break; |
578 case 'ariaHiddenRoot': | 578 case 'ariaHiddenSubTree': |
579 var ariaHiddenSpan = createElement('span', 'source-code').textContent =
'aria-hidden'; | 579 var ariaHiddenSpan = createElement('span', 'source-code').textContent =
'aria-hidden'; |
580 var trueSpan = createElement('span', 'source-code').textContent = 'true'
; | 580 var trueSpan = createElement('span', 'source-code').textContent = 'true'
; |
581 reasonElement = UI.formatLocalized('%s is %s on ancestor:\u00a0', [ariaH
iddenSpan, trueSpan]); | 581 reasonElement = UI.formatLocalized('%s is %s on ancestor:\u00a0', [ariaH
iddenSpan, trueSpan]); |
582 break; | 582 break; |
583 case 'emptyAlt': | 583 case 'emptyAlt': |
584 reasonElement = UI.formatLocalized('Element has empty alt text.', []); | 584 reasonElement = UI.formatLocalized('Element has empty alt text.', []); |
585 break; | 585 break; |
586 case 'emptyText': | 586 case 'emptyText': |
587 reasonElement = UI.formatLocalized('No text content.', []); | 587 reasonElement = UI.formatLocalized('No text content.', []); |
588 break; | 588 break; |
589 case 'inert': | 589 case 'inertElement': |
590 reasonElement = UI.formatLocalized('Element is inert.', []); | 590 reasonElement = UI.formatLocalized('Element is inert.', []); |
591 break; | 591 break; |
| 592 case 'inertSubtree': |
| 593 reasonElement = UI.formatLocalized('Element is in an inert subtree from\
u00a0', []); |
| 594 break; |
592 case 'inheritsPresentation': | 595 case 'inheritsPresentation': |
593 reasonElement = UI.formatLocalized('Element inherits presentational role
from\u00a0', []); | 596 reasonElement = UI.formatLocalized('Element inherits presentational role
from\u00a0', []); |
594 break; | 597 break; |
595 case 'labelContainer': | 598 case 'labelContainer': |
596 reasonElement = UI.formatLocalized('Part of label element:\u00a0', []); | 599 reasonElement = UI.formatLocalized('Part of label element:\u00a0', []); |
597 break; | 600 break; |
598 case 'labelFor': | 601 case 'labelFor': |
599 reasonElement = UI.formatLocalized('Label for\u00a0', []); | 602 reasonElement = UI.formatLocalized('Label for\u00a0', []); |
600 break; | 603 break; |
601 case 'notRendered': | 604 case 'notRendered': |
(...skipping 29 matching lines...) Expand all Loading... |
631 | 634 |
632 this._reasonElement = | 635 this._reasonElement = |
633 Accessibility.AXNodeIgnoredReasonTreeElement.createReasonElement(this._p
roperty.name, this._axNode); | 636 Accessibility.AXNodeIgnoredReasonTreeElement.createReasonElement(this._p
roperty.name, this._axNode); |
634 this.listItemElement.appendChild(this._reasonElement); | 637 this.listItemElement.appendChild(this._reasonElement); |
635 | 638 |
636 var value = this._property.value; | 639 var value = this._property.value; |
637 if (value.type === Protocol.Accessibility.AXValueType.Idref) | 640 if (value.type === Protocol.Accessibility.AXValueType.Idref) |
638 this.appendRelatedNodeListValueElement(value); | 641 this.appendRelatedNodeListValueElement(value); |
639 } | 642 } |
640 }; | 643 }; |
OLD | NEW |