|
|
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}
Total comments: 15
Total comments: 12
Total comments: 2
|
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
|
Total messages: 22 (8 generated)
|