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

Unified Diff: content/common/accessibility_node_data.h

Issue 25943003: Support accessible inline text boxes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: content/common/accessibility_node_data.h
diff --git a/content/common/accessibility_node_data.h b/content/common/accessibility_node_data.h
index 34e93479c6a6891cc89d114719591790f5ca3907..a5d9c09d7179b858710353cdcc7b169b669b6404 100644
--- a/content/common/accessibility_node_data.h
+++ b/content/common/accessibility_node_data.h
@@ -88,7 +88,10 @@ struct CONTENT_EXPORT AccessibilityNodeData {
// Color value for WebKit::WebAXRoleColorWell, each component is 0..255
ATTR_COLOR_VALUE_RED,
ATTR_COLOR_VALUE_GREEN,
- ATTR_COLOR_VALUE_BLUE
+ ATTR_COLOR_VALUE_BLUE,
+
+ // Inline text attributes.
+ ATTR_TEXT_DIRECTION
};
enum FloatAttribute {
@@ -145,7 +148,14 @@ struct CONTENT_EXPORT AccessibilityNodeData {
// For a table, the unique cell ids in row-major order of their first
// occurrence.
- ATTR_UNIQUE_CELL_IDS
+ ATTR_UNIQUE_CELL_IDS,
+
+ // For inline text.
+ ATTR_CHARACTER_OFFSETS,
+
+ // For inline text.
David Tseng 2013/10/17 22:56:29 These attributes are not very obvious; perhaps add
dmazzoni 2013/10/21 17:26:57 Done.
+ ATTR_WORD_STARTS,
+ ATTR_WORD_ENDS,
};
AccessibilityNodeData();
@@ -159,9 +169,11 @@ struct CONTENT_EXPORT AccessibilityNodeData {
void AddIntListAttribute(IntListAttribute attribute,
const std::vector<int32>& value);
- // Convenience function, mainly for writing unit tests.
+ // Convenience functions, mainly for writing unit tests.
// Equivalent to AddStringAttribute(ATTR_NAME, name).
void SetName(std::string name);
+ // Equivalent to AddStringAttribute(ATTR_VALUE, value).
+ void SetValue(std::string value);
#ifndef NDEBUG
virtual std::string DebugString(bool recursive) const;

Powered by Google App Engine
This is Rietveld 408576698