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 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
581 case 'activeModalDialog': | 581 case 'activeModalDialog': |
582 reasonElement = UI.formatLocalized('Element is hidden by active modal di
alog:\u00a0', []); | 582 reasonElement = UI.formatLocalized('Element is hidden by active modal di
alog:\u00a0', []); |
583 break; | 583 break; |
584 case 'ancestorDisallowsChild': | 584 case 'ancestorDisallowsChild': |
585 reasonElement = UI.formatLocalized('Element is not permitted as child of
', []); | 585 reasonElement = UI.formatLocalized('Element is not permitted as child of
', []); |
586 break; | 586 break; |
587 // http://www.w3.org/TR/wai-aria/roles#childrenArePresentational | 587 // http://www.w3.org/TR/wai-aria/roles#childrenArePresentational |
588 case 'ancestorIsLeafNode': | 588 case 'ancestorIsLeafNode': |
589 reasonElement = UI.formatLocalized('Ancestor\'s children are all present
ational:\u00a0', []); | 589 reasonElement = UI.formatLocalized('Ancestor\'s children are all present
ational:\u00a0', []); |
590 break; | 590 break; |
591 case 'ariaHidden': | 591 case 'ariaHiddenElement': |
592 var ariaHiddenSpan = createElement('span', 'source-code').textContent =
'aria-hidden'; | 592 var ariaHiddenSpan = createElement('span', 'source-code').textContent =
'aria-hidden'; |
593 reasonElement = UI.formatLocalized('Element is %s.', [ariaHiddenSpan]); | 593 reasonElement = UI.formatLocalized('Element is %s.', [ariaHiddenSpan]); |
594 break; | 594 break; |
595 case 'ariaHiddenRoot': | 595 case 'ariaHiddenSubTree': |
596 var ariaHiddenSpan = createElement('span', 'source-code').textContent =
'aria-hidden'; | 596 var ariaHiddenSpan = createElement('span', 'source-code').textContent =
'aria-hidden'; |
597 var trueSpan = createElement('span', 'source-code').textContent = 'true'
; | 597 var trueSpan = createElement('span', 'source-code').textContent = 'true'
; |
598 reasonElement = UI.formatLocalized('%s is %s on ancestor:\u00a0', [ariaH
iddenSpan, trueSpan]); | 598 reasonElement = UI.formatLocalized('%s is %s on ancestor:\u00a0', [ariaH
iddenSpan, trueSpan]); |
599 break; | 599 break; |
600 case 'emptyAlt': | 600 case 'emptyAlt': |
601 reasonElement = UI.formatLocalized('Element has empty alt text.', []); | 601 reasonElement = UI.formatLocalized('Element has empty alt text.', []); |
602 break; | 602 break; |
603 case 'emptyText': | 603 case 'emptyText': |
604 reasonElement = UI.formatLocalized('No text content.', []); | 604 reasonElement = UI.formatLocalized('No text content.', []); |
605 break; | 605 break; |
606 case 'inert': | 606 case 'inertElement': |
607 reasonElement = UI.formatLocalized('Element is inert.', []); | 607 reasonElement = UI.formatLocalized('Element is inert.', []); |
608 break; | 608 break; |
| 609 case 'inertSubtree': |
| 610 reasonElement = UI.formatLocalized('Element is in an inert subtree from\
u00a0', []); |
| 611 break; |
609 case 'inheritsPresentation': | 612 case 'inheritsPresentation': |
610 reasonElement = UI.formatLocalized('Element inherits presentational role
from\u00a0', []); | 613 reasonElement = UI.formatLocalized('Element inherits presentational role
from\u00a0', []); |
611 break; | 614 break; |
612 case 'labelContainer': | 615 case 'labelContainer': |
613 reasonElement = UI.formatLocalized('Part of label element:\u00a0', []); | 616 reasonElement = UI.formatLocalized('Part of label element:\u00a0', []); |
614 break; | 617 break; |
615 case 'labelFor': | 618 case 'labelFor': |
616 reasonElement = UI.formatLocalized('Label for\u00a0', []); | 619 reasonElement = UI.formatLocalized('Label for\u00a0', []); |
617 break; | 620 break; |
618 case 'notRendered': | 621 case 'notRendered': |
(...skipping 29 matching lines...) Expand all Loading... |
648 | 651 |
649 this._reasonElement = | 652 this._reasonElement = |
650 Accessibility.AXNodeIgnoredReasonTreeElement.createReasonElement(this._p
roperty.name, this._axNode); | 653 Accessibility.AXNodeIgnoredReasonTreeElement.createReasonElement(this._p
roperty.name, this._axNode); |
651 this.listItemElement.appendChild(this._reasonElement); | 654 this.listItemElement.appendChild(this._reasonElement); |
652 | 655 |
653 var value = this._property.value; | 656 var value = this._property.value; |
654 if (value.type === Protocol.Accessibility.AXValueType.Idref) | 657 if (value.type === Protocol.Accessibility.AXValueType.Idref) |
655 this.appendRelatedNodeListValueElement(value); | 658 this.appendRelatedNodeListValueElement(value); |
656 } | 659 } |
657 }; | 660 }; |
OLD | NEW |