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

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

Issue 1907263002: DevTools: Fix all outstanding JavaScript style issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove yoda disable. fix throw parens Created 4 years, 8 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 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 }; 596 };
597 597
598 /** 598 /**
599 * @param {?string} reason 599 * @param {?string} reason
600 * @param {?AccessibilityAgent.AXNode} axNode 600 * @param {?AccessibilityAgent.AXNode} axNode
601 * @return {?Element} 601 * @return {?Element}
602 */ 602 */
603 WebInspector.AXNodeIgnoredReasonTreeElement.createReasonElement = function(reaso n, axNode) 603 WebInspector.AXNodeIgnoredReasonTreeElement.createReasonElement = function(reaso n, axNode)
604 { 604 {
605 var reasonElement = null; 605 var reasonElement = null;
606 switch(reason) { 606 switch (reason) {
607 case "activeModalDialog": 607 case "activeModalDialog":
608 reasonElement = WebInspector.formatLocalized("Element is hidden by activ e modal dialog:\u00a0", []); 608 reasonElement = WebInspector.formatLocalized("Element is hidden by activ e modal dialog:\u00a0", []);
609 break; 609 break;
610 case "ancestorDisallowsChild": 610 case "ancestorDisallowsChild":
611 reasonElement = WebInspector.formatLocalized("Element is not permitted a s child of ", []); 611 reasonElement = WebInspector.formatLocalized("Element is not permitted a s child of ", []);
612 break; 612 break;
613 // http://www.w3.org/TR/wai-aria/roles#childrenArePresentational 613 // http://www.w3.org/TR/wai-aria/roles#childrenArePresentational
614 case "ancestorIsLeafNode": 614 case "ancestorIsLeafNode":
615 reasonElement = WebInspector.formatLocalized("Ancestor's children are al l presentational:\u00a0", []); 615 reasonElement = WebInspector.formatLocalized("Ancestor's children are al l presentational:\u00a0", []);
616 break; 616 break;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 reasonElement = WebInspector.formatLocalized("Static text node is used a s name for\u00a0", []); 658 reasonElement = WebInspector.formatLocalized("Static text node is used a s name for\u00a0", []);
659 break; 659 break;
660 case "uninteresting": 660 case "uninteresting":
661 reasonElement = WebInspector.formatLocalized("Element not interesting fo r accessibility.", []); 661 reasonElement = WebInspector.formatLocalized("Element not interesting fo r accessibility.", []);
662 break; 662 break;
663 } 663 }
664 if (reasonElement) 664 if (reasonElement)
665 reasonElement.classList.add("ax-reason"); 665 reasonElement.classList.add("ax-reason");
666 return reasonElement; 666 return reasonElement;
667 }; 667 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698