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

Side by Side Diff: Source/devtools/front_end/accessibility/AccessibilitySidebarView.js

Issue 1300703004: DevTools: only set title w/ shortcut via Tooltip manager API. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaselined Created 5 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/devtools/front_end/components/NetworkConditionsSelector.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/components/NetworkConditionsSelector.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698