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

Unified Diff: ui/accessibility/ax_role_properties.h

Issue 2969603002: Move two BrowserAccessibility role predicates to ax_role_properties. (Closed)
Patch Set: macos Created 3 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
Index: ui/accessibility/ax_role_properties.h
diff --git a/ui/accessibility/ax_role_properties.h b/ui/accessibility/ax_role_properties.h
index 6ee8234ed4f36f729005fc36d3d0ac05017881c5..22c7c2b28b6b2904cfeba8eb682523182fb01526 100644
--- a/ui/accessibility/ax_role_properties.h
+++ b/ui/accessibility/ax_role_properties.h
@@ -26,6 +26,12 @@ AX_EXPORT bool IsContainerWithSelectableChildrenRole(ui::AXRole role);
// Returns true if this node is a row container.
AX_EXPORT bool IsRowContainer(ui::AXRole role);
+// Returns true if this node is a control.
+AX_EXPORT bool IsControl(ui::AXRole role);
+
+// Returns true if this node is a menu or related role.
+AX_EXPORT bool IsMenuRelated(ui::AXRole role);
+
} // namespace ui
#endif // UI_ACCESSIBILITY_AX_ROLE_PROPERTIES_H_
« no previous file with comments | « content/browser/accessibility/one_shot_accessibility_tree_search.cc ('k') | ui/accessibility/ax_role_properties.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698