0

Enabled <time> tags to be read by TalkBack on Android

Added explicit case for <time> tags to prevent node from being ignored
as a leaf on Android. This will allow the <time> nodes to be traversed
with AT the same as on other platforms.

Bug: 1043377
Change-Id: Ibd243578322485d7abafc4b5f7a8dbe0f9986d79
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2018243
Reviewed-by: Dominic Mazzoni <dmazzoni@chromium.org>
Commit-Queue: Mark Schillaci <mschillaci@google.com>
Cr-Commit-Position: refs/heads/master@{#736159}
This commit is contained in:
Mark Schillaci
2020-01-29 00:33:47 +00:00
committed by Commit Bot
parent a5181f635d
commit 5897ef7f6e
3 changed files with 5 additions and 6 deletions

@ -1787,7 +1787,6 @@ bool BrowserAccessibilityAndroid::ShouldExposeValueAsName() const {
case ax::mojom::Role::kDateTime:
case ax::mojom::Role::kTextField:
case ax::mojom::Role::kTextFieldWithComboBox:
case ax::mojom::Role::kTime:
return true;
default:
break;

@ -1,5 +1,5 @@
android.webkit.WebView focusable focused scrollable
++android.view.View role_description='time'
++android.view.View role_description='time'
++android.view.View role_description='time' name='role'
++android.view.View role_description='time' name='element (no name)'
++android.view.View name=' '
++android.view.View role_description='time' hint='include me'
++android.view.View role_description='time' name='include me'

@ -1,5 +1,5 @@
android.webkit.WebView focusable focused scrollable
++android.view.View
++++android.view.View role_description='time'
++++android.view.View role_description='time' name='10:00'
++++android.view.View name=' '
++++android.view.View role_description='time'
++++android.view.View role_description='time' name='Valentines day'