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

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

Issue 2650733002: Revert of Update json_schema_compiler to handle the Automation extension API (Closed)
Patch Set: 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 73911c79082230ec8984a38ac854f6d3cd1b8573..ac9318b473d4ba26b11bf0699615829630331a45 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js
@@ -794,7 +794,7 @@
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.
@@ -807,7 +807,7 @@
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