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

Unified Diff: chrome/browser/resources/chromeos/chromevox/chromevox/background/options.js

Issue 1107343006: Add a method to enable ChromeVox Next easily for the current run. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/chromeos/chromevox/chromevox/background/options.js
diff --git a/chrome/browser/resources/chromeos/chromevox/chromevox/background/options.js b/chrome/browser/resources/chromeos/chromevox/chromevox/background/options.js
index bbf63da5081734f38a1f0c5a271bd63a2ca4a97d..b40df3c09fc89325f05601e9faddad9a258dbca9 100644
--- a/chrome/browser/resources/chromeos/chromevox/chromevox/background/options.js
+++ b/chrome/browser/resources/chromeos/chromevox/chromevox/background/options.js
@@ -98,6 +98,31 @@ cvox.OptionsPage.init = function() {
$('version').textContent =
chrome.app.getDetails().version;
}
+
+ // Temporary secret way to enable ChromeVox Next for the current run of
+ // ChromeVox.
+ var next = 'next';
+ document.body.addEventListener('keypress', function(evt) {
+ if (next === undefined) {
+ return;
+ }
+ var key = String.fromCharCode(evt.charCode);
+ if (next[0] === key) {
+ next = next.slice(1);
+
+ if (next === '') {
+ cvox.OptionsPage.speak(
+ 'You are now running ChromeVox Next; open a new tab to start',
+ cvox.QueueMode.FLUSH);
+ next = undefined;
+ chrome.extension.getBackgroundPage()['global']
+ .backgroundObj.forceChromeVoxNextActive();
+ }
+ } else {
+ next = 'next';
+ }
+ return true;
+ }, true);
};
/**
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698