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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/accessibility/AXNodeObject.cpp ('k') | Source/core/accessibility/AXObjectCache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/accessibility/AXObject.h
diff --git a/Source/core/accessibility/AXObject.h b/Source/core/accessibility/AXObject.h
index 0a9075d9622a69489642623e91328bbe8e9042ab..d5db1b6a906f33a7c1dce825454528cc08e4d546 100644
--- a/Source/core/accessibility/AXObject.h
+++ b/Source/core/accessibility/AXObject.h
@@ -101,6 +101,7 @@ enum AccessibilityRole {
ImageMapRole,
ImageRole,
IncrementorRole,
+ InlineTextBoxRole,
LabelRole,
LegendRole,
LinkRole,
@@ -242,6 +243,13 @@ enum AccessibilityButtonState {
ButtonStateMixed,
};
+enum AccessibilityTextDirection {
+ AccessibilityTextDirectionLeftToRight,
+ AccessibilityTextDirectionRightToLeft,
+ AccessibilityTextDirectionTopToBottom,
+ AccessibilityTextDirectionBottomToTop
+};
+
struct VisiblePositionRange {
VisiblePosition start;
@@ -411,6 +419,13 @@ public:
virtual AXObject* titleUIElement() const { return 0; }
virtual KURL url() const { return KURL(); }
+ // For an inline text box.
+ virtual AccessibilityTextDirection textDirection() const { return AccessibilityTextDirectionLeftToRight; }
+ // The integer horizontal pixel offset of each character in the string; negative values for RTL.
+ virtual void textCharacterOffsets(Vector<int>&) const { }
+ // The start and end character offset of each word in the inline text box.
+ virtual void wordBoundaries(Vector<PlainTextRange>& words) const { }
+
// Properties of interactive elements.
virtual String actionVerb() const;
virtual AccessibilityButtonState checkboxOrRadioValue() const;
« 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