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

Unified Diff: ui/accessibility/ax_node_data.h

Issue 2860883003: A11y: Add/refactor methods for manipulating bitfields on AXNodeData. (Closed)
Patch Set: Revert comment. 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
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..bc3b16a8a0fa82243dcd76f1c07c480bd1e07091 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 ClearBitfields();
tapted 2017/05/05 05:53:36 I feel like this should be called InitState() or P
Patti Lor 2017/05/08 00:28:08 Renamed to Init() for now, will link owners this c
+ // 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;

Powered by Google App Engine
This is Rietveld 408576698