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

Unified Diff: ui/accessibility/ax_node_data.h

Issue 2860883003: A11y: Add/refactor methods for manipulating bitfields on AXNodeData. (Closed)
Patch Set: Delete AXNodeData::Init() and clear bitfields in AXNodeData() instead. 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..037e074015701c60adc0f56df10ad8eb2356264f 100644
--- a/ui/accessibility/ax_node_data.h
+++ b/ui/accessibility/ax_node_data.h
@@ -106,12 +106,9 @@ 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;
+ // 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