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

Unified Diff: ui/accessibility/ax_node_data.h

Issue 2860883003: A11y: Add/refactor methods for manipulating bitfields on AXNodeData. (Closed)
Patch Set: Review comments. Created 3 years, 7 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
« no previous file with comments | « content/renderer/accessibility/blink_ax_tree_source.cc ('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 f44024f79c157e04d18093e0e824e4026cdac0ef..8be60eb349748e89d5c21ea82c44a128c8684d88 100644
--- a/ui/accessibility/ax_node_data.h
+++ b/ui/accessibility/ax_node_data.h
@@ -106,12 +106,11 @@ struct AX_EXPORT AXNodeData {
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;
+ // Clear all bits in preparation for use of AXNodeData.
+ void Init();
dmazzoni 2017/05/08 04:28:26 Perhaps we should just put this in the constructor
Patti Lor 2017/05/08 07:44:47 I've deleted this Init() method and just set |stat
+ // Set or check bits in |state|.
+ bool HasState(ui::AXState state_flag) const;
+ void AddState(ui::AXState state_flag);
// Return a string representation of this data, for debugging.
virtual std::string ToString() const;
« no previous file with comments | « content/renderer/accessibility/blink_ax_tree_source.cc ('k') | ui/accessibility/ax_node_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698