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

Unified Diff: chrome/browser/resources/chromeos/chromevox/host/chrome/host.js

Issue 1191783002: Support Compat mode inside of the desktop tree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@commands_alt
Patch Set: Resolve focus. Created 5 years, 6 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/host/chrome/host.js
diff --git a/chrome/browser/resources/chromeos/chromevox/host/chrome/host.js b/chrome/browser/resources/chromeos/chromevox/host/chrome/host.js
index 19cdfb7fd71e9cbe2b8a0f92f31f10b235fe8834..3ceac54a502ea7db0ba79d68909abb85b33948fb 100644
--- a/chrome/browser/resources/chromeos/chromevox/host/chrome/host.js
+++ b/chrome/browser/resources/chromeos/chromevox/host/chrome/host.js
@@ -122,6 +122,9 @@ cvox.ChromeHost.prototype.init = function() {
}});
cvox.ExtensionBridge.addMessageListener(function(msg, port) {
+ if (!cvox.ChromeVox.documentHasFocus()) {
dmazzoni 2015/06/17 19:29:58 Are there messages you do want to listen to here,
David Tseng 2015/06/17 21:15:13 toggling ChromeVox is now special cased; it turns
dmazzoni 2015/06/18 16:45:50 This source file runs on other platforms, though.
David Tseng 2015/06/18 17:32:13 If there's another sender of this message, then ye
+ return;
+ }
var message = msg['message'];
if (message == 'USER_COMMAND') {
var cmd = msg['command'];

Powered by Google App Engine
This is Rietveld 408576698