| 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 /** | 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 Loading... |
| 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 Loading... |
| 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 }; |
| OLD | NEW |