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

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

Issue 2150623002: Refactor: Extract a KeyboardHandler and CommandHandler from Background (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test. Created 4 years, 5 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/panel.js
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js
index 1845335b738fd447c32648f321bb6564194f7700..c2eb5bd55dc8469392a961d41f695ec5f05be52e 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js
@@ -310,10 +310,9 @@ Panel.onOpenMenus = function(opt_event, opt_activateMenuTitle) {
binding.title,
binding.keySeq,
function() {
- var bkgnd =
- chrome.extension.
- getBackgroundPage()['ChromeVoxState']['instance'];
- bkgnd['onGotCommand'](binding.command);
+ var CommandHandler =
+ chrome.extension.getBackgroundPage()['CommandHandler'];
+ CommandHandler['onCommand'](binding.command);
});
}
}, this));

Powered by Google App Engine
This is Rietveld 408576698