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

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

Issue 2601333002: Update json_schema_compiler to handle the Automation extension API (Closed)
Patch Set: Rebase 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/media_automation_handler.js
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/media_automation_handler.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/media_automation_handler.js
index f969fe73030d4919b7a59994a7d7e0b49a99ae4f..72b3054afa6251371ae7d1a74505a0940b1e5fd4 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/media_automation_handler.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/media_automation_handler.js
@@ -36,9 +36,10 @@ MediaAutomationHandler = function() {
chrome.automation.getDesktop(function(node) {
BaseAutomationHandler.call(this, node);
- var e = EventType;
- this.addListener_(e.mediaStartedPlaying, this.onMediaStartedPlaying);
- this.addListener_(e.mediaStoppedPlaying, this.onMediaStoppedPlaying);
+ this.addListener_(EventType.MEDIA_STARTED_PLAYING,
+ this.onMediaStartedPlaying);
+ this.addListener_(EventType.MEDIA_STOPPED_PLAYING,
+ this.onMediaStoppedPlaying);
}.bind(this));
};

Powered by Google App Engine
This is Rietveld 408576698