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

Unified Diff: ui/accessibility/ax_view_state.h

Issue 2016243002: Mac a11y: Add RoleDescription and Value attributes to accessibility information. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments. Created 4 years, 6 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/browser/accessibility/browser_accessibility_cocoa.mm ('k') | ui/accessibility/ax_view_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accessibility/ax_view_state.h
diff --git a/ui/accessibility/ax_view_state.h b/ui/accessibility/ax_view_state.h
index 6126edbac97559b0adf99c5d8f7853a626bea152..bc5af258ddcf3dd24833d2bd2a0ea810efa41100 100644
--- a/ui/accessibility/ax_view_state.h
+++ b/ui/accessibility/ax_view_state.h
@@ -27,9 +27,12 @@ struct AX_EXPORT AXViewState {
AXViewState();
~AXViewState();
+ // 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);
- bool HasStateFlag(ui::AXState state) const;
+ void AddStateFlag(ui::AXState state_flag);
+ bool HasStateFlag(ui::AXState state_flag) const;
// The view's state, a bitmask containing fields such as checked
// (for a checkbox) and protected (for a password text box). This "state"
« no previous file with comments | « content/browser/accessibility/browser_accessibility_cocoa.mm ('k') | ui/accessibility/ax_view_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698