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

Issue 2447773002: Use setSequentialFocusNavigationStartingPoint in ChromeVox (Closed)

Created:
4 years, 1 month ago by dmazzoni
Modified:
4 years, 1 month ago
Reviewers:
David Tseng
CC:
chromium-reviews, extensions-reviews_chromium.org, alemate+watch_chromium.org, sadrul, dtseng+watch_chromium.org, aboxhall, mlamouri+watch-content_chromium.org, aboxhall+watch_chromium.org, jam, nektar+watch_chromium.org, yuzo+watch_chromium.org, haraken, nektarios, je_julie, darin-cc_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, kalyank, blink-reviews, chromium-apps-reviews_chromium.org, dmazzoni+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use setSequentialFocusNavigationStartingPoint in ChromeVox Improves the interaction between ChromeVox navigation and input focus. If you navigate to a focusable node, focuses it. If you navigate to a descendant of a focusable node, focuses it too (checks the common ancestors of the start and end of the selection). If not, sets the sequential focus navigation start point to the start of the selection so that subsequent focus using the Tab key is relative to that point. Includes two new tests. BUG=655272 TESTED=Visit Wikipedia, press Cvox+H to navigate to heading, then Tab to go to the next link after that heading. Then navigate by line with Search+Up/Down and confirm that it focuses links as you pass over them. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/fb6b8fd66c69ba0460fc38bbe3a256876665d7cf Cr-Commit-Position: refs/heads/master@{#428313}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Rebased and added test #

Total comments: 1

Patch Set 3 : Fix focusing too, with new test #

Total comments: 5

Patch Set 4 : Don't focus web area, make test more robust #

Patch Set 5 : Use getLeastCommonAncestor and only focus links #

Total comments: 2

Patch Set 6 : Links or controls #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -39 lines) Patch
M chrome/browser/chromeos/accessibility/spoken_feedback_browsertest.cc View 1 2 3 4 1 chunk +42 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/automation_internal/automation_internal_api.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/common/chrome_extension_externs.js View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js View 1 2 3 4 5 1 chunk +28 lines, -1 line 3 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js View 1 2 3 4 5 1 chunk +26 lines, -14 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs View 1 2 3 chunks +24 lines, -3 lines 0 comments Download
M chrome/browser/ui/aura/accessibility/automation_manager_aura.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/automation.idl View 1 2 chunks +4 lines, -14 lines 0 comments Download
M chrome/common/extensions/api/automation_internal.idl View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/resources/extensions/automation/automation_node.js View 2 chunks +5 lines, -0 lines 0 comments Download
M content/renderer/accessibility/render_accessibility_impl.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/accessibility/PRESUBMIT.py View 1 1 chunk +0 lines, -2 lines 0 comments Download
M ui/accessibility/ax_action_data.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M ui/accessibility/ax_enums.idl View 1 chunk +7 lines, -2 lines 0 comments Download

Messages

Total messages: 52 (32 generated)
dmazzoni
4 years, 1 month ago (2016-10-24 16:25:43 UTC) #4
David Tseng
In this case, you could automate via a SpokenFeedbackTest. https://codereview.chromium.org/2447773002/diff/1/chrome/common/extensions/api/automation.idl File chrome/common/extensions/api/automation.idl (right): https://codereview.chromium.org/2447773002/diff/1/chrome/common/extensions/api/automation.idl#newcode229 chrome/common/extensions/api/automation.idl:229: ...
4 years, 1 month ago (2016-10-24 21:51:32 UTC) #8
dmazzoni
Addressed feedback and added test. Will refactor spoken feedback browser tests as a follow-up. https://codereview.chromium.org/2447773002/diff/1/chrome/common/extensions/api/automation.idl ...
4 years, 1 month ago (2016-10-26 16:20:22 UTC) #9
David Tseng
Update TEST= with something like manually navigated with ChromeVox by object, line. Verified tabbing moves ...
4 years, 1 month ago (2016-10-26 17:03:26 UTC) #12
dmazzoni
On 2016/10/26 17:03:26, David Tseng wrote: > Update TEST= with something like > manually navigated ...
4 years, 1 month ago (2016-10-26 17:30:32 UTC) #13
David Tseng
On 2016/10/26 17:30:32, dmazzoni wrote: > On 2016/10/26 17:03:26, David Tseng wrote: > > Update ...
4 years, 1 month ago (2016-10-26 18:19:12 UTC) #16
dmazzoni
Now handles focusing ancestors properly, and adds another test.
4 years, 1 month ago (2016-10-26 22:58:50 UTC) #22
David Tseng
https://codereview.chromium.org/2447773002/diff/40001/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js File chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js (right): https://codereview.chromium.org/2447773002/diff/40001/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js#newcode786 chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js:786: AutomationUtil.getDivergence(startAncestors, endAncestors)); As mentioned, AutomationUtil.getLeastCommonAncestor and then walk up. ...
4 years, 1 month ago (2016-10-27 01:09:51 UTC) #23
dmazzoni
https://codereview.chromium.org/2447773002/diff/40001/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js File chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js (right): https://codereview.chromium.org/2447773002/diff/40001/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js#newcode788 chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js:788: for (var i = commonAncestorCount - 1; i >= ...
4 years, 1 month ago (2016-10-27 03:59:25 UTC) #24
dmazzoni
https://codereview.chromium.org/2447773002/diff/40001/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js File chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js (right): https://codereview.chromium.org/2447773002/diff/40001/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js#newcode786 chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js:786: AutomationUtil.getDivergence(startAncestors, endAncestors)); On 2016/10/27 01:09:50, David Tseng wrote: > ...
4 years, 1 month ago (2016-10-27 06:27:27 UTC) #26
David Tseng
https://codereview.chromium.org/2447773002/diff/80001/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js File chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js (right): https://codereview.chromium.org/2447773002/diff/80001/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js#newcode792 chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js:792: while (ancestor && ancestor.root == start.root) { Counter example: ...
4 years, 1 month ago (2016-10-27 17:03:18 UTC) #32
dmazzoni
https://codereview.chromium.org/2447773002/diff/80001/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js File chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js (right): https://codereview.chromium.org/2447773002/diff/80001/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js#newcode792 chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js:792: while (ancestor && ancestor.root == start.root) { On 2016/10/27 ...
4 years, 1 month ago (2016-10-27 19:42:50 UTC) #35
David Tseng
lgtm https://codereview.chromium.org/2447773002/diff/100001/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js File chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js (right): https://codereview.chromium.org/2447773002/diff/100001/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js#newcode103 chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js:103: Role.colorWell, Looks like this is just input type ...
4 years, 1 month ago (2016-10-27 22:42:38 UTC) #40
dmazzoni
https://codereview.chromium.org/2447773002/diff/100001/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js File chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js (right): https://codereview.chromium.org/2447773002/diff/100001/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js#newcode106 chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js:106: Role.switch, On 2016/10/27 22:42:38, David Tseng wrote: > Didn't ...
4 years, 1 month ago (2016-10-27 22:56:02 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2447773002/100001
4 years, 1 month ago (2016-10-27 22:57:10 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/57409)
4 years, 1 month ago (2016-10-28 00:33:22 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2447773002/100001
4 years, 1 month ago (2016-10-28 06:30:52 UTC) #47
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 1 month ago (2016-10-28 07:54:10 UTC) #49
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/fb6b8fd66c69ba0460fc38bbe3a256876665d7cf Cr-Commit-Position: refs/heads/master@{#428313}
4 years, 1 month ago (2016-10-28 07:58:30 UTC) #51
David Tseng
4 years, 1 month ago (2016-11-04 15:38:18 UTC) #52
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:100001) has been created in
https://codereview.chromium.org/2479893002/ by dtseng@chromium.org.

The reason for reverting is: crbug.com/652140

This is impacting my ability to fix other bugs for m56.
.

Powered by Google App Engine
This is Rietveld 408576698