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

Unified Diff: Source/core/accessibility/AccessibilityObject.h

Issue 23983002: Expose InlineTextBoxes in the accessibility tree. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove platform differences from inline-text-textarea output Created 7 years, 3 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
Index: Source/core/accessibility/AccessibilityObject.h
diff --git a/Source/core/accessibility/AccessibilityObject.h b/Source/core/accessibility/AccessibilityObject.h
index 72bc24e5d8fff84105dda1a48fb9b7e3115f7f34..e91afdda5c9a30342b2ec805095997dd1f8088f0 100644
--- a/Source/core/accessibility/AccessibilityObject.h
+++ b/Source/core/accessibility/AccessibilityObject.h
@@ -101,6 +101,7 @@ enum AccessibilityRole {
ImageMapRole,
ImageRole,
IncrementorRole,
+ InlineTextBoxRole,
LabelRole,
LegendRole,
LinkRole,
@@ -409,6 +410,12 @@ public:
virtual AccessibilityObject* titleUIElement() const { return 0; }
virtual KURL url() const { return KURL(); }
+ // For an inline text box.
+ // 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<int>& starts, Vector<int>& ends) const { }
+
// Properties of interactive elements.
virtual String actionVerb() const;
virtual AccessibilityButtonState checkboxOrRadioValue() const;

Powered by Google App Engine
This is Rietveld 408576698