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

Unified Diff: content/browser/accessibility/browser_accessibility_android.h

Issue 2422773002: Improve Android accessible hit testing. (Closed)
Patch Set: Address feedback Created 4 years, 2 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 | « no previous file | content/browser/accessibility/browser_accessibility_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/accessibility/browser_accessibility_android.h
diff --git a/content/browser/accessibility/browser_accessibility_android.h b/content/browser/accessibility/browser_accessibility_android.h
index 09681c439324da6170ad5e8dc91e064313c37a0c..7498abfd66b345da1e3b627ac60a5c89cde54871 100644
--- a/content/browser/accessibility/browser_accessibility_android.h
+++ b/content/browser/accessibility/browser_accessibility_android.h
@@ -48,6 +48,16 @@ class CONTENT_EXPORT BrowserAccessibilityAndroid : public BrowserAccessibility {
bool IsSlider() const;
bool IsVisibleToUser() const;
+ // This returns true for all nodes that we should navigate to.
+ // Nodes that have a generic role, no accessible name, and aren't
+ // focusable or clickable aren't interesting.
+ bool IsInterestingOnAndroid() const;
+
+ // If this node isn't interesting, recursively checks all of the
aboxhall 2016/10/18 22:17:28 This comment is missing a critical point, especial
dmazzoni 2016/10/19 23:00:45 Ah, good point. Renamed and reworded, take a look
+ // platform children of this node, and if just a single one is
+ // interesting, returns that one.
+ const BrowserAccessibilityAndroid* GetSoleInterestingDescendant() const;
+
bool CanOpenPopup() const;
bool HasFocusableChild() const;
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698