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

Issue 1622803002: Cleanup AutomationUtil.findNodeUntil, fix wrapping when moving by line, (Closed)

Created:
4 years, 11 months ago by David Tseng
Modified:
4 years, 10 months ago
Reviewers:
dmazzoni
CC:
chromium-reviews, oshima+watch_chromium.org, plundblad+watch_chromium.org, aboxhall+watch_chromium.org, nektar+watch_chromium.org, yuzo+watch_chromium.org, je_julie, arv+watch_chromium.org, dtseng+watch_chromium.org, dmazzoni+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Cleanup AutomationUtil.findNodeUntil, fix wrapping when moving by line 1. AutomationUtil.findNodeUntil isn't entirely clear due to the use of a callback that wants to keep track of the previous node being visited. This has since become wrong because of the changes made to AutomationTreeWalker. Instead, let's just call AutomationUtil.findNextNode which should gibve us the proper linearization. Take pairs in order and apply the predicate. 2. wrapping by line didn't quite work as expected because of the asymmetric nature of the linearization. We need to get to the end when wrapping from the beginning to the end and start applying our predicate. Note that this is subject to some weird corner cases depending on how we write the predicates (e.g. ones that check for children). 3. Ensure we consider invisible nodes to be leaves. They should also be ignored when encountered (this is already done). TEST=navigate around using ChromeVox Next on the shelf. Observe desirable behaviors. Committed: https://crrev.com/a135032a36858abd06d90ea8273b0a406079e9c6 Cr-Commit-Position: refs/heads/master@{#371620}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -39 lines) Patch
M chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_util.js View 1 1 chunk +11 lines, -33 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors.js View 1 2 2 chunks +12 lines, -5 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors_test.extjs View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (7 generated)
David Tseng
4 years, 11 months ago (2016-01-23 01:53:42 UTC) #3
dmazzoni
lgtm
4 years, 10 months ago (2016-01-26 19:50:30 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1622803002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1622803002/40001
4 years, 10 months ago (2016-01-26 21:51:44 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 10 months ago (2016-01-26 22:37:26 UTC) #10
commit-bot: I haz the power
4 years, 10 months ago (2016-01-26 22:38:03 UTC) #12
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/a135032a36858abd06d90ea8273b0a406079e9c6
Cr-Commit-Position: refs/heads/master@{#371620}

Powered by Google App Engine
This is Rietveld 408576698