Changeset 172021 in webkit
- Timestamp:
- Aug 4, 2014, 7:47:01 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r172018 r172021 1 2014-08-04 Chris Fleizach <cfleizach@apple.com> 2 3 AX: add AccessibilityObject::computedLabelString() for WebAXI 4 https://bugs.webkit.org/show_bug.cgi?id=129939 5 6 Reviewed by Mario Sanchez Prada. 7 8 Provide a method that the WebKit Inspector can call in order to 9 display an accessible name for an AX node. 10 11 * accessibility/AccessibilityObject.cpp: 12 (WebCore::AccessibilityObject::accessibilityComputedLabel): 13 * accessibility/AccessibilityObject.h: 14 1 15 2014-08-04 Tim Horton <timothy_horton@apple.com> 2 16 -
trunk/Source/WebCore/accessibility/AccessibilityObject.cpp
r171997 r172021 287 287 || accessibilityDescription().contains(*text, false) 288 288 || stringValue().contains(*text, false); 289 } 290 291 String AccessibilityObject::accessibilityComputedLabel() 292 { 293 Vector<AccessibilityText> text; 294 accessibilityText(text); 295 if (text.size()) 296 return text[0].text; 297 return String(); 289 298 } 290 299 -
trunk/Source/WebCore/accessibility/AccessibilityObject.h
r171477 r172021 648 648 // Accessibility Text 649 649 virtual void accessibilityText(Vector<AccessibilityText>&) { }; 650 650 // A single methods for getting a computed label for an AXObject. It condenses the nuances of accessibilityText. Used by Inspector. 651 String accessibilityComputedLabel(); 652 651 653 // A programmatic way to set a name on an AccessibleObject. 652 654 virtual void setAccessibleName(const AtomicString&) { }
Note:
See TracChangeset
for help on using the changeset viewer.