Chromium Code Reviews| 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; |