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

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

Issue 845663002: On Android, links inside headings should be announced as headings by TalkBack (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updating test case as per latest rebased code Created 5 years, 11 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/dump_accessibility_tree_browsertest.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.cc
diff --git a/content/browser/accessibility/browser_accessibility_android.cc b/content/browser/accessibility/browser_accessibility_android.cc
index 9073c16441f0fdf4b013615eb9a479440a576a30..d6a22a9a2c20673f1d8ef806d46e807727f8d41e 100644
--- a/content/browser/accessibility/browser_accessibility_android.cc
+++ b/content/browser/accessibility/browser_accessibility_android.cc
@@ -194,6 +194,11 @@ bool BrowserAccessibilityAndroid::IsFocused() const {
}
bool BrowserAccessibilityAndroid::IsHeading() const {
+ BrowserAccessibilityAndroid* parent =
+ static_cast<BrowserAccessibilityAndroid*>(GetParent());
+ if (parent && parent->IsHeading())
+ return true;
+
return (GetRole() == ui::AX_ROLE_COLUMN_HEADER ||
GetRole() == ui::AX_ROLE_HEADING ||
GetRole() == ui::AX_ROLE_ROW_HEADER);
« no previous file with comments | « no previous file | content/browser/accessibility/dump_accessibility_tree_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698