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

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

Issue 2601333002: Update json_schema_compiler to handle the Automation extension API (Closed)
Patch Set: Address lots of feedback Created 3 years, 11 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 4d6a4d7c3caa50e85d10293f86d0c48a679198b3..5c5f078e7c0a97931cf02b99461eaf4d1d3f242b 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js
@@ -802,7 +802,7 @@ Panel.getCallbackForCurrentItem = function() {
Panel.closeMenusAndRestoreFocus = function() {
// Watch for the next focus event.
var onFocus = function(desktop, evt) {
- desktop.removeEventListener(chrome.automation.EventType.focus, onFocus);
+ desktop.removeEventListener(chrome.automation.EventType.FOCUS, onFocus);
if (Panel.pendingCallback_) {
// Clear it before calling it, in case the callback itself triggers
// another pending callback.
@@ -815,7 +815,7 @@ Panel.closeMenusAndRestoreFocus = function() {
chrome.automation.getDesktop(function(desktop) {
onFocus = /** @type {function(chrome.automation.AutomationEvent)} */(
onFocus.bind(this, desktop));
- desktop.addEventListener(chrome.automation.EventType.focus,
+ desktop.addEventListener(chrome.automation.EventType.FOCUS,
onFocus,
true);

Powered by Google App Engine
This is Rietveld 408576698