Index: ui/accessibility/ax_node_data.h |
diff --git a/ui/accessibility/ax_node_data.h b/ui/accessibility/ax_node_data.h |
index 037e074015701c60adc0f56df10ad8eb2356264f..8d64ef51f39f54003f408e5c0dd17474d1cd1a7f 100644 |
--- a/ui/accessibility/ax_node_data.h |
+++ b/ui/accessibility/ax_node_data.h |
@@ -106,9 +106,13 @@ struct AX_EXPORT AXNodeData { |
void SetValue(const std::string& value); |
void SetValue(const base::string16& value); |
- // Set or check bits in |state|. |
- bool HasState(ui::AXState state_flag) const; |
- void AddState(ui::AXState state_flag); |
+ // Returns true if the given enum bit is 1. |
+ bool HasState(ui::AXState state_enum) const; |
+ bool HasAction(ui::AXAction state_enum) const; |
+ |
+ // Set bits in the given enum's corresponding bitfield. |
+ void AddState(ui::AXState state_enum); |
+ void AddAction(ui::AXAction action_enum); |
// Return a string representation of this data, for debugging. |
virtual std::string ToString() const; |
@@ -118,6 +122,7 @@ struct AX_EXPORT AXNodeData { |
int32_t id; |
AXRole role; |
uint32_t state; |
+ uint32_t actions; |
std::vector<std::pair<AXStringAttribute, std::string>> string_attributes; |
std::vector<std::pair<AXIntAttribute, int32_t>> int_attributes; |
std::vector<std::pair<AXFloatAttribute, float>> float_attributes; |