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

Side by Side Diff: Source/core/accessibility/AXObject.h

Issue 23983002: Expose InlineTextBoxes in the accessibility tree. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 7 years, 2 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 | « Source/core/accessibility/AXNodeObject.cpp ('k') | Source/core/accessibility/AXObjectCache.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Nuanti Ltd. 3 * Copyright (C) 2008 Nuanti Ltd.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 GroupRole, 94 GroupRole,
95 GrowAreaRole, 95 GrowAreaRole,
96 HeadingRole, 96 HeadingRole,
97 HelpTagRole, 97 HelpTagRole,
98 HorizontalRuleRole, 98 HorizontalRuleRole,
99 IgnoredRole, 99 IgnoredRole,
100 ImageMapLinkRole, 100 ImageMapLinkRole,
101 ImageMapRole, 101 ImageMapRole,
102 ImageRole, 102 ImageRole,
103 IncrementorRole, 103 IncrementorRole,
104 InlineTextBoxRole,
104 LabelRole, 105 LabelRole,
105 LegendRole, 106 LegendRole,
106 LinkRole, 107 LinkRole,
107 ListBoxOptionRole, 108 ListBoxOptionRole,
108 ListBoxRole, 109 ListBoxRole,
109 ListItemRole, 110 ListItemRole,
110 ListMarkerRole, 111 ListMarkerRole,
111 ListRole, 112 ListRole,
112 LogRole, 113 LogRole,
113 MainRole, 114 MainRole,
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 IgnoreObject, 236 IgnoreObject,
236 DefaultBehavior, 237 DefaultBehavior,
237 }; 238 };
238 239
239 enum AccessibilityButtonState { 240 enum AccessibilityButtonState {
240 ButtonStateOff = 0, 241 ButtonStateOff = 0,
241 ButtonStateOn, 242 ButtonStateOn,
242 ButtonStateMixed, 243 ButtonStateMixed,
243 }; 244 };
244 245
246 enum AccessibilityTextDirection {
247 AccessibilityTextDirectionLeftToRight,
248 AccessibilityTextDirectionRightToLeft,
249 AccessibilityTextDirectionTopToBottom,
250 AccessibilityTextDirectionBottomToTop
251 };
252
245 struct VisiblePositionRange { 253 struct VisiblePositionRange {
246 254
247 VisiblePosition start; 255 VisiblePosition start;
248 VisiblePosition end; 256 VisiblePosition end;
249 257
250 VisiblePositionRange() { } 258 VisiblePositionRange() { }
251 259
252 VisiblePositionRange(const VisiblePosition& s, const VisiblePosition& e) 260 VisiblePositionRange(const VisiblePosition& s, const VisiblePosition& e)
253 : start(s) 261 : start(s)
254 , end(e) 262 , end(e)
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 virtual int headingLevel() const { return 0; } 412 virtual int headingLevel() const { return 0; }
405 // 1-based, to match the aria-level spec. 413 // 1-based, to match the aria-level spec.
406 virtual unsigned hierarchicalLevel() const { return 0; } 414 virtual unsigned hierarchicalLevel() const { return 0; }
407 virtual AccessibilityOrientation orientation() const; 415 virtual AccessibilityOrientation orientation() const;
408 virtual int tableLevel() const { return 0; } 416 virtual int tableLevel() const { return 0; }
409 virtual String text() const { return String(); } 417 virtual String text() const { return String(); }
410 virtual int textLength() const { return 0; } 418 virtual int textLength() const { return 0; }
411 virtual AXObject* titleUIElement() const { return 0; } 419 virtual AXObject* titleUIElement() const { return 0; }
412 virtual KURL url() const { return KURL(); } 420 virtual KURL url() const { return KURL(); }
413 421
422 // For an inline text box.
423 virtual AccessibilityTextDirection textDirection() const { return Accessibil ityTextDirectionLeftToRight; }
424 // The integer horizontal pixel offset of each character in the string; nega tive values for RTL.
425 virtual void textCharacterOffsets(Vector<int>&) const { }
426 // The start and end character offset of each word in the inline text box.
427 virtual void wordBoundaries(Vector<PlainTextRange>& words) const { }
428
414 // Properties of interactive elements. 429 // Properties of interactive elements.
415 virtual String actionVerb() const; 430 virtual String actionVerb() const;
416 virtual AccessibilityButtonState checkboxOrRadioValue() const; 431 virtual AccessibilityButtonState checkboxOrRadioValue() const;
417 virtual void colorValue(int& r, int& g, int& b) const { r = 0; g = 0; b = 0; } 432 virtual void colorValue(int& r, int& g, int& b) const { r = 0; g = 0; b = 0; }
418 virtual String valueDescription() const { return String(); } 433 virtual String valueDescription() const { return String(); }
419 virtual float valueForRange() const { return 0.0f; } 434 virtual float valueForRange() const { return 0.0f; }
420 virtual float maxValueForRange() const { return 0.0f; } 435 virtual float maxValueForRange() const { return 0.0f; }
421 virtual float minValueForRange() const { return 0.0f; } 436 virtual float minValueForRange() const { return 0.0f; }
422 const AtomicString& placeholderValue() const; 437 const AtomicString& placeholderValue() const;
423 virtual void selectedChildren(AccessibilityChildrenVector&) { } 438 virtual void selectedChildren(AccessibilityChildrenVector&) { }
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 #if !HAVE(ACCESSIBILITY) 602 #if !HAVE(ACCESSIBILITY)
588 inline const AXObject::AccessibilityChildrenVector& AXObject::children() { retur n m_children; } 603 inline const AXObject::AccessibilityChildrenVector& AXObject::children() { retur n m_children; }
589 inline String AXObject::actionVerb() const { return emptyString(); } 604 inline String AXObject::actionVerb() const { return emptyString(); }
590 inline int AXObject::lineForPosition(const VisiblePosition&) const { return -1; } 605 inline int AXObject::lineForPosition(const VisiblePosition&) const { return -1; }
591 inline void AXObject::updateBackingStore() { } 606 inline void AXObject::updateBackingStore() { }
592 #endif 607 #endif
593 608
594 } // namespace WebCore 609 } // namespace WebCore
595 610
596 #endif // AXObject_h 611 #endif // AXObject_h
OLDNEW
« no previous file with comments | « Source/core/accessibility/AXNodeObject.cpp ('k') | Source/core/accessibility/AXObjectCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698