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

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

Issue 1702913002: Make updates to ChromeVox KB Explorer for Next. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 10 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
Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js
index f8e646c09a821376c440df7a90cce41bdc9f5e44..16e8cbb568075711048a0339d40f36eab7b34a01 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js
@@ -122,8 +122,8 @@ Background = function() {
cvox.ExtensionBridge.addMessageListener(this.onMessage_);
- document.addEventListener('keydown', this.onKeyDown.bind(this), true);
- document.addEventListener('keyup', this.onKeyUp.bind(this), true);
+ document.addEventListener('keydown', this.onKeyDown.bind(this), false);
+ document.addEventListener('keyup', this.onKeyUp.bind(this), false);
cvox.ChromeVoxKbHandler.commandHandler = this.onGotCommand.bind(this);
// Classic keymap.
@@ -518,6 +518,10 @@ Background.prototype = {
case 'openChromeVoxMenus':
(new PanelCommand(PanelCommandType.OPEN_MENUS)).send();
return false;
+ case 'showKbExplorerPage':
+ var explorerPage = {url: 'chromevox/background/kbexplorer.html'};
+ chrome.tabs.create(explorerPage);
+ break;
case 'decreaseTtsRate':
this.increaseOrDecreaseSpeechProperty_(cvox.AbstractTts.RATE, false);
break;
@@ -536,6 +540,10 @@ Background.prototype = {
case 'increaseTtsVolume':
this.increaseOrDecreaseSpeechProperty_(cvox.AbstractTts.VOLUME, true);
break;
+ case 'stopSpeech':
+ cvox.ChromeVox.tts.stop();
+ global.isReadingContinuously = false;
+ return false;
default:
return true;
}

Powered by Google App Engine
This is Rietveld 408576698