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

Unified Diff: ui/accessibility/ax_node_data.h

Issue 2477463003: Replace ui::AXViewState with AXNodeData and AXActionData (Closed)
Patch Set: Fix test Created 4 years, 1 month 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
« no previous file with comments | « ui/accessibility/ax_enums.idl ('k') | ui/accessibility/ax_node_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accessibility/ax_node_data.h
diff --git a/ui/accessibility/ax_node_data.h b/ui/accessibility/ax_node_data.h
index 3fbaaa5bd41ea264e0ed0a570d028f8ce2a0bc5d..acd5ec54c4765d20f31c9efc37c9b8e740192edd 100644
--- a/ui/accessibility/ax_node_data.h
+++ b/ui/accessibility/ax_node_data.h
@@ -93,8 +93,17 @@ struct AX_EXPORT AXNodeData {
// Convenience functions, mainly for writing unit tests.
// Equivalent to AddStringAttribute(ATTR_NAME, name).
void SetName(const std::string& name);
+ void SetName(const base::string16& name);
// Equivalent to AddStringAttribute(ATTR_VALUE, value).
void SetValue(const std::string& value);
+ void SetValue(const base::string16& value);
+
+ // Helper to check whether |state_flag| is set in the given |state|.
+ static bool IsFlagSet(uint32_t state, ui::AXState state_flag);
+
+ // Set or check bits in |state_|.
+ void AddStateFlag(ui::AXState state_flag);
+ bool HasStateFlag(ui::AXState state_flag) const;
// Return a string representation of this data, for debugging.
virtual std::string ToString() const;
« no previous file with comments | « ui/accessibility/ax_enums.idl ('k') | ui/accessibility/ax_node_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698