| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 | 51 |
| 52 this._ignoredInfo.classList.remove("hidden"); | 52 this._ignoredInfo.classList.remove("hidden"); |
| 53 ignoredReasons.element.classList.remove("hidden"); | 53 ignoredReasons.element.classList.remove("hidden"); |
| 54 /** | 54 /** |
| 55 * @param {!AccessibilityAgent.AXProperty} property | 55 * @param {!AccessibilityAgent.AXProperty} property |
| 56 */ | 56 */ |
| 57 function addIgnoredReason(property) | 57 function addIgnoredReason(property) |
| 58 { | 58 { |
| 59 ignoredReasons.appendChild(new WebInspector.AXNodeIgnoredReasonT
reeElement(property, axNode, target)); | 59 ignoredReasons.appendChild(new WebInspector.AXNodeIgnoredReasonT
reeElement(property, axNode, target)); |
| 60 } | 60 } |
| 61 var ignoredReasonsArray = /** @type {!Array.<!Object>} */(axNode.ign
oredReasons); | 61 var ignoredReasonsArray = /** @type {!Array<!AccessibilityAgent.AXPr
operty>} */(axNode.ignoredReasons); |
| 62 for (var reason of ignoredReasonsArray) | 62 for (var reason of ignoredReasonsArray) |
| 63 addIgnoredReason(reason); | 63 addIgnoredReason(reason); |
| 64 if (!ignoredReasons.firstChild()) | 64 if (!ignoredReasons.firstChild()) |
| 65 ignoredReasons.element.classList.add("hidden"); | 65 ignoredReasons.element.classList.add("hidden"); |
| 66 return; | 66 return; |
| 67 } | 67 } |
| 68 this.element.classList.remove("ax-ignored-node-pane"); | 68 this.element.classList.remove("ax-ignored-node-pane"); |
| 69 | 69 |
| 70 this._ignoredInfo.classList.add("hidden"); | 70 this._ignoredInfo.classList.add("hidden"); |
| 71 ignoredReasons.element.classList.add("hidden"); | 71 ignoredReasons.element.classList.add("hidden"); |
| (...skipping 586 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 |