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

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

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

Powered by Google App Engine
This is Rietveld 408576698