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

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: esprehn comments and fix layout tests to use testharness.js Created 4 years, 5 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 /** 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 632 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 break; 643 break;
644 case "emptyAlt": 644 case "emptyAlt":
645 reasonElement = WebInspector.formatLocalized("Element has empty alt text .", []); 645 reasonElement = WebInspector.formatLocalized("Element has empty alt text .", []);
646 break; 646 break;
647 case "emptyText": 647 case "emptyText":
648 reasonElement = WebInspector.formatLocalized("No text content.", []); 648 reasonElement = WebInspector.formatLocalized("No text content.", []);
649 break; 649 break;
650 case "inert": 650 case "inert":
651 reasonElement = WebInspector.formatLocalized("Element is inert.", []); 651 reasonElement = WebInspector.formatLocalized("Element is inert.", []);
652 break; 652 break;
653 case "inertRoot":
654 reasonElement = WebInspector.formatLocalized("Element is in an inert sub tree from:\u00a0", []);
655 break;
653 case "inheritsPresentation": 656 case "inheritsPresentation":
654 reasonElement = WebInspector.formatLocalized("Element inherits presentat ional role from\u00a0", []); 657 reasonElement = WebInspector.formatLocalized("Element inherits presentat ional role from\u00a0", []);
655 break; 658 break;
656 case "labelContainer": 659 case "labelContainer":
657 reasonElement = WebInspector.formatLocalized("Part of label element:\u00 a0", []); 660 reasonElement = WebInspector.formatLocalized("Part of label element:\u00 a0", []);
658 break; 661 break;
659 case "labelFor": 662 case "labelFor":
660 reasonElement = WebInspector.formatLocalized("Label for\u00a0", []); 663 reasonElement = WebInspector.formatLocalized("Label for\u00a0", []);
661 break; 664 break;
662 case "notRendered": 665 case "notRendered":
(...skipping 13 matching lines...) Expand all
676 reasonElement = WebInspector.formatLocalized("Static text node is used a s name for\u00a0", []); 679 reasonElement = WebInspector.formatLocalized("Static text node is used a s name for\u00a0", []);
677 break; 680 break;
678 case "uninteresting": 681 case "uninteresting":
679 reasonElement = WebInspector.formatLocalized("Element not interesting fo r accessibility.", []); 682 reasonElement = WebInspector.formatLocalized("Element not interesting fo r accessibility.", []);
680 break; 683 break;
681 } 684 }
682 if (reasonElement) 685 if (reasonElement)
683 reasonElement.classList.add("ax-reason"); 686 reasonElement.classList.add("ax-reason");
684 return reasonElement; 687 return reasonElement;
685 }; 688 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698