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

Unified Diff: content/browser/accessibility/one_shot_accessibility_tree_search.cc

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
« no previous file with comments | « content/browser/accessibility/browser_accessibility_cocoa.mm ('k') | ui/accessibility/ax_role_properties.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/accessibility/one_shot_accessibility_tree_search.cc
diff --git a/content/browser/accessibility/one_shot_accessibility_tree_search.cc b/content/browser/accessibility/one_shot_accessibility_tree_search.cc
index 45f1512fa9183937d2e035dff8353c46f99a155a..ff9c44d50b8f8bc834b7f5fe0d385015debab033 100644
--- a/content/browser/accessibility/one_shot_accessibility_tree_search.cc
+++ b/content/browser/accessibility/one_shot_accessibility_tree_search.cc
@@ -253,7 +253,7 @@ bool AccessibilityComboboxPredicate(
bool AccessibilityControlPredicate(
BrowserAccessibility* start, BrowserAccessibility* node) {
- if (node->IsControl())
+ if (ui::IsControl(node->GetRole()))
return true;
if (node->HasState(ui::AX_STATE_FOCUSABLE) &&
node->GetRole() != ui::AX_ROLE_IFRAME &&
« no previous file with comments | « content/browser/accessibility/browser_accessibility_cocoa.mm ('k') | ui/accessibility/ax_role_properties.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698