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

Unified Diff: ui/accessibility/ax_role_properties.h

Issue 2962453002: Move AX Role predicates into ax_role_properties.h. (Closed)
Patch Set: Android 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 7d9ab79611e12aa76d2d496dcc68e2e106a0a116..6ee8234ed4f36f729005fc36d3d0ac05017881c5 100644
--- a/ui/accessibility/ax_role_properties.h
+++ b/ui/accessibility/ax_role_properties.h
@@ -14,6 +14,18 @@ namespace ui {
// clicks.
AX_EXPORT bool IsRoleClickable(AXRole role);
+// Returns true if this node is a cell or a table header.
+AX_EXPORT bool IsCellOrTableHeaderRole(AXRole role);
+
+// Returns true if this node is a table, a grid or a treegrid.
+AX_EXPORT bool IsTableLikeRole(AXRole role);
+
+// Returns true if this node is a container with selectable children.
+AX_EXPORT bool IsContainerWithSelectableChildrenRole(ui::AXRole role);
+
+// Returns true if this node is a row container.
+AX_EXPORT bool IsRowContainer(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