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

Side by Side 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, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_ACCESSIBILITY_AX_ROLE_PROPERTIES_H_ 5 #ifndef UI_ACCESSIBILITY_AX_ROLE_PROPERTIES_H_
6 #define UI_ACCESSIBILITY_AX_ROLE_PROPERTIES_H_ 6 #define UI_ACCESSIBILITY_AX_ROLE_PROPERTIES_H_
7 7
8 #include "ui/accessibility/ax_enums.h" 8 #include "ui/accessibility/ax_enums.h"
9 #include "ui/accessibility/ax_export.h" 9 #include "ui/accessibility/ax_export.h"
10 10
11 namespace ui { 11 namespace ui {
12 12
13 // Checks if the given role should belong to a control that can respond to 13 // Checks if the given role should belong to a control that can respond to
14 // clicks. 14 // clicks.
15 AX_EXPORT bool IsRoleClickable(AXRole role); 15 AX_EXPORT bool IsRoleClickable(AXRole role);
16 16
17 // Returns true if this node is a cell or a table header.
18 AX_EXPORT bool IsCellOrTableHeaderRole(AXRole role);
19
20 // Returns true if this node is a table, a grid or a treegrid.
21 AX_EXPORT bool IsTableLikeRole(AXRole role);
22
23 // Returns true if this node is a container with selectable children.
24 AX_EXPORT bool IsContainerWithSelectableChildrenRole(ui::AXRole role);
25
26 // Returns true if this node is a row container.
27 AX_EXPORT bool IsRowContainer(ui::AXRole role);
28
17 } // namespace ui 29 } // namespace ui
18 30
19 #endif // UI_ACCESSIBILITY_AX_ROLE_PROPERTIES_H_ 31 #endif // UI_ACCESSIBILITY_AX_ROLE_PROPERTIES_H_
OLDNEW
« 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