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

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

Issue 841903002: Form labels not being spoken in TalkBack (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updating test results 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/test/data/accessibility/html/fieldset-expected-android.txt » ('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 612bfa2ebdfdb5744e84803cb93af28620092494..3480d1fcc916e08486949e2bc56989a605a4b5fe 100644
--- a/content/browser/accessibility/browser_accessibility_android.cc
+++ b/content/browser/accessibility/browser_accessibility_android.cc
@@ -392,6 +392,12 @@ base::string16 BrowserAccessibilityAndroid::GetText() const {
text = placeholder;
else if (!value().empty())
text = base::UTF8ToUTF16(value());
+ else if (title_elem_id) {
+ BrowserAccessibility* title_elem =
+ manager()->GetFromID(title_elem_id);
+ if (title_elem)
+ text = static_cast<BrowserAccessibilityAndroid*>(title_elem)->GetText();
+ }
// This is called from PlatformIsLeaf, so don't call PlatformChildCount
// from within this!
« no previous file with comments | « no previous file | content/test/data/accessibility/html/fieldset-expected-android.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698