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

Issue 2079073002: Make ChromeVox Next a setting in options page. (Closed)

Created:
4 years, 6 months ago by David Tseng
Modified:
4 years, 6 months ago
Reviewers:
dmazzoni
CC:
chromium-reviews, oshima+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

Make ChromeVox Next a setting in options page. - persists the ChromeVox mode in local storage; this makes it so that you can start using ChromeVox Next right way on startup - makes the new ChromeVox experience a checkbox in options; rework some of the mode setting logic to make this happen. - add strings for announcing switches between the new and classic experiences; also, fire a message center notification if switching to the new experience for the first time. This change required some non-trivial amount of refactoring: - use ChromeVoxState.instance.getCurrentRange() as the definitive notion of mode; mode is based on current range. - ChromeVoxState and global were both "global" objects; merge them into ChromeVoxState - removed and simplified various mode related logic - Background (the ChromeVox Next background page) now explicitly depends on ChromeVoxBackground (ChromeVox classic background page) via goog.require. This was necessary to ensure that the window.prefs object was created already for keyboard map switching on startup BUG=618094, 618092, 618090 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/e771bbe3e029830c01fb85d50a9be5559dc7aac4 Cr-Commit-Position: refs/heads/master@{#401596}

Patch Set 1 #

Total comments: 15

Patch Set 2 : On demand mode. #

Patch Set 3 : m #

Total comments: 12

Patch Set 4 : m #

Patch Set 5 : m #

Patch Set 6 : m #

Total comments: 2

Patch Set 7 : Bunch of test fixes. #

Patch Set 8 : rebase #

Patch Set 9 : Another small fix. #

Patch Set 10 : Don't set initial range #

Patch Set 11 : m #

Unified diffs Side-by-side diffs Delta from patch set Stats (+308 lines, -264 lines) Patch
M chrome/browser/resources/chromeos/chromevox/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/chromevox/background/background.js View 1 2 3 4 5 6 7 8 9 10 3 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/chromevox/background/options.html View 1 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/chromevox/background/options.js View 1 1 chunk +5 lines, -23 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/chromevox/background/prefs.js View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/chromeos/chromevox/chromevox/background/tabs_api_handler.js View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/chromevox/injected/user_commands.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/chromeos/chromevox/common/chrome_extension_externs.js View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/chromeos/chromevox/common/command_store.js View 1 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_util.js View 1 2 3 4 5 6 7 1 chunk +19 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js View 1 2 3 4 5 6 7 8 9 27 chunks +145 lines, -139 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs View 1 2 3 4 5 6 7 8 9 10 12 chunks +49 lines, -44 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/chromevox_state.js View 1 2 3 4 5 6 2 chunks +11 lines, -14 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors.js View 1 2 3 4 5 2 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.js View 1 2 3 4 5 6 7 chunks +6 lines, -14 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/editing_test.extjs View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/i_search.js View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/live_regions_test.extjs View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/notifications.js View 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js View 1 2 3 4 5 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js View 1 2 3 4 5 6 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/tabs_automation_handler.js View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/resources/chromeos/chromevox/host/chrome/braille_background.js View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/strings/chromevox_strings.grd View 1 1 chunk +13 lines, -1 line 0 comments Download
M chrome/browser/resources/chromeos/chromevox/testing/chromevox_next_e2e_test_base.js View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 22 (8 generated)
David Tseng
Ready for a look. Note that the offline discussion about disabling all classic pages becomes ...
4 years, 6 months ago (2016-06-17 20:40:31 UTC) #4
dmazzoni
https://codereview.chromium.org/2079073002/diff/1/chrome/browser/resources/chromeos/chromevox/chromevox/background/options.html File chrome/browser/resources/chromeos/chromevox/chromevox/background/options.html (right): https://codereview.chromium.org/2079073002/diff/1/chrome/browser/resources/chromeos/chromevox/chromevox/background/options.html#newcode68 chrome/browser/resources/chromeos/chromevox/chromevox/background/options.html:68: Use the new ChromeVox experience (beta) This should maybe ...
4 years, 6 months ago (2016-06-20 19:49:03 UTC) #5
David Tseng
https://codereview.chromium.org/2079073002/diff/1/chrome/browser/resources/chromeos/chromevox/chromevox/background/options.html File chrome/browser/resources/chromeos/chromevox/chromevox/background/options.html (right): https://codereview.chromium.org/2079073002/diff/1/chrome/browser/resources/chromeos/chromevox/chromevox/background/options.html#newcode68 chrome/browser/resources/chromeos/chromevox/chromevox/background/options.html:68: Use the new ChromeVox experience (beta) On 2016/06/20 19:49:03, ...
4 years, 6 months ago (2016-06-20 22:31:08 UTC) #6
dmazzoni
https://codereview.chromium.org/2079073002/diff/1/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js File chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js (right): https://codereview.chromium.org/2079073002/diff/1/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js#newcode339 chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js:339: this.setMode(newMode, true); On 2016/06/20 22:31:08, David Tseng wrote: > ...
4 years, 6 months ago (2016-06-20 22:41:44 UTC) #7
David Tseng
On Mon, Jun 20, 2016 at 3:41 PM, <dmazzoni@chromium.org> wrote: > > https://codereview.chromium.org/2079073002/diff/1/chrome/bro > wser/resources/chromeos/chromevox/cvox2/background/background.js ...
4 years, 6 months ago (2016-06-20 23:39:23 UTC) #8
dmazzoni
Here's what I had in mind: Get rid of setMode(), make everything a call to ...
4 years, 6 months ago (2016-06-21 00:10:40 UTC) #9
David Tseng
On 2016/06/21 00:10:40, dmazzoni wrote: > Here's what I had in mind: > > Get ...
4 years, 6 months ago (2016-06-21 19:35:04 UTC) #10
dmazzoni
lgtm Thanks, this is basically fine now, just a few more suggestions. https://codereview.chromium.org/2079073002/diff/40001/chrome/browser/resources/chromeos/chromevox/chromevox/background/tabs_api_handler.js File chrome/browser/resources/chromeos/chromevox/chromevox/background/tabs_api_handler.js ...
4 years, 6 months ago (2016-06-21 21:21:02 UTC) #11
David Tseng
PTAL. Since you had several comments, I'll wait for you to take another pass. https://codereview.chromium.org/2079073002/diff/40001/chrome/browser/resources/chromeos/chromevox/chromevox/background/tabs_api_handler.js ...
4 years, 6 months ago (2016-06-21 22:41:32 UTC) #12
dmazzoni
lgtm Looks great, setCurrentRangeToFocus is much more clear and I like how setting the range ...
4 years, 6 months ago (2016-06-22 05:23:33 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2079073002/200001
4 years, 6 months ago (2016-06-23 13:23:49 UTC) #17
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 6 months ago (2016-06-23 13:37:30 UTC) #19
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/e771bbe3e029830c01fb85d50a9be5559dc7aac4 Cr-Commit-Position: refs/heads/master@{#401596}
4 years, 6 months ago (2016-06-23 13:39:18 UTC) #21
flackr
4 years, 6 months ago (2016-06-23 14:28:43 UTC) #22
Message was sent while issue was closed.
A revert of this CL (patchset #11 id:200001) has been created in
https://codereview.chromium.org/2092743002/ by flackr@chromium.org.

The reason for reverting is: Failing BackgroundTest.DisappearingObject on
chromiumos:
https://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%...

I verified locally that it seems to consistently time out with this patch..

Powered by Google App Engine
This is Rietveld 408576698