Change name property computation
When an Android node has content description set, this results in the name field not being updated, resulting in the name (which is the content description text) being read out. The desired result is that the name (the currently entered text) be read out. This CL changes the name computation to be based on the combined text, content_description, label and pane_title. For an editText, the value of the node will be set to the text (and not included in name computation), to allow the newly entered text to be read out correctly. Bug: b:140316122, b:130441287 Test: arc.accessibilitySpeech (added in crrev/1813097) Test: existing test passes (arc.accessibilityEvent/Tree) Test: AXTreeSourceArcTest.AccessibleNameComputation* Change-Id: I72b7a098f468b5ed7c31f2050b7bfadae68b9988 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1786363 Commit-Queue: Sara Kato <sarakato@chromium.org> Auto-Submit: Sara Kato <sarakato@chromium.org> Reviewed-by:David Tseng <dtseng@chromium.org> Reviewed-by:
Sara Kato <sarakato@chromium.org> Cr-Commit-Position: refs/heads/master@{#704945}
Showing
Please register or sign in to comment