| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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.ThrottledWidget} | 7 * @extends {WebInspector.ThrottledWidget} |
| 8 */ | 8 */ |
| 9 WebInspector.AccessibilitySidebarView = function() | 9 WebInspector.AccessibilitySidebarView = function() |
| 10 { | 10 { |
| (...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 /** | 454 /** |
| 455 * @param {?string} name | 455 * @param {?string} name |
| 456 * @return {!Element} | 456 * @return {!Element} |
| 457 */ | 457 */ |
| 458 WebInspector.AXNodePropertyTreeElement.createNameElement = function(name) | 458 WebInspector.AXNodePropertyTreeElement.createNameElement = function(name) |
| 459 { | 459 { |
| 460 var nameElement = createElement("span"); | 460 var nameElement = createElement("span"); |
| 461 var AXAttributes = WebInspector.AccessibilityStrings.AXAttributes; | 461 var AXAttributes = WebInspector.AccessibilityStrings.AXAttributes; |
| 462 if (name in AXAttributes) { | 462 if (name in AXAttributes) { |
| 463 nameElement.textContent = WebInspector.UIString(AXAttributes[name].name)
; | 463 nameElement.textContent = WebInspector.UIString(AXAttributes[name].name)
; |
| 464 WebInspector.Tooltip.install(nameElement, AXAttributes[name].description
); | 464 nameElement.title = AXAttributes[name].description; |
| 465 nameElement.classList.add("ax-readable-name"); | 465 nameElement.classList.add("ax-readable-name"); |
| 466 } else { | 466 } else { |
| 467 nameElement.textContent = name; | 467 nameElement.textContent = name; |
| 468 nameElement.classList.add("ax-name"); | 468 nameElement.classList.add("ax-name"); |
| 469 } | 469 } |
| 470 return nameElement; | 470 return nameElement; |
| 471 } | 471 } |
| 472 | 472 |
| 473 /** | 473 /** |
| 474 * @param {!AccessibilityAgent.AXValue} value | 474 * @param {!AccessibilityAgent.AXValue} value |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 679 reasonElement = WebInspector.formatLocalized("Static text node is used a
s name for ", [], ""); | 679 reasonElement = WebInspector.formatLocalized("Static text node is used a
s name for ", [], ""); |
| 680 break; | 680 break; |
| 681 case "uninteresting": | 681 case "uninteresting": |
| 682 reasonElement = WebInspector.formatLocalized("Element not interesting fo
r accessibility.", [], "") | 682 reasonElement = WebInspector.formatLocalized("Element not interesting fo
r accessibility.", [], "") |
| 683 break; | 683 break; |
| 684 } | 684 } |
| 685 if (reasonElement) | 685 if (reasonElement) |
| 686 reasonElement.classList.add("ax-reason"); | 686 reasonElement.classList.add("ax-reason"); |
| 687 return reasonElement; | 687 return reasonElement; |
| 688 } | 688 } |
| OLD | NEW |