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

Unified Diff: public/web/WebAccessibilityObject.h

Issue 23983002: Expose InlineTextBoxes in the accessibility tree. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address review feedback 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: public/web/WebAccessibilityObject.h
diff --git a/public/web/WebAccessibilityObject.h b/public/web/WebAccessibilityObject.h
index ac0bb1e1a1d1766b5935a69855a3d6c3bcfbe7e1..01a5b57d5fa55a7d87ac0b9a6d361bb0006d8307 100644
--- a/public/web/WebAccessibilityObject.h
+++ b/public/web/WebAccessibilityObject.h
@@ -78,6 +78,9 @@ public:
WEBKIT_EXPORT static void enableAccessibility();
WEBKIT_EXPORT static bool accessibilityEnabled();
+ // Temporary: this flag will only be toggleable until Chromium has it on by default.
+ WEBKIT_EXPORT static void enableInlineTextBoxAccessibility();
+
WEBKIT_EXPORT void startCachingComputedObjectAttributesUntilTreeMutates();
WEBKIT_EXPORT void stopCachingComputedObjectAttributes();
@@ -198,6 +201,10 @@ public:
WEBKIT_EXPORT unsigned cellRowIndex() const;
WEBKIT_EXPORT unsigned cellRowSpan() const;
+ // For an inline text box.
+ WEBKIT_EXPORT void characterOffsets(WebVector<int>&) const;
+ WEBKIT_EXPORT void wordBoundaries(WebVector<int>& starts, WebVector<int>& ends) const;
+
// Make this object visible by scrolling as many nested scrollable views as needed.
WEBKIT_EXPORT void scrollToMakeVisible() const;
// Same, but if the whole object can't be made visible, try for this subrect, in local coordinates.

Powered by Google App Engine
This is Rietveld 408576698