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

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

Issue 2550593003: Expose media controls to accessibility (Closed)
Patch Set: Expose ducking controls to accessibility Created 4 years 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
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/BUILD.gn ('k') | chrome/common/extensions/api/automation.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
new file mode 100644
index 0000000000000000000000000000000000000000..8a57c06b0289f5dded396959f3f76eb4fa569425
--- /dev/null
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/media_automation_handler.js
@@ -0,0 +1,48 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+/**
+ * @fileoverview Handles media events automation.
+ */
+
+goog.provide('MediaAutomationHandler');
+
+goog.require('BaseAutomationHandler');
+
+goog.scope(function() {
+var AutomationEvent = chrome.automation.AutomationEvent;
+var AutomationNode = chrome.automation.AutomationNode;
+var EventType = chrome.automation.EventType;
+var RoleType = chrome.automation.RoleType;
+
+/**
+ * @param {!AutomationNode} node The root to observe media changes.
+ * @constructor
+ * @extends {BaseAutomationHandler}
+ */
+MediaAutomationHandler = function(node) {
+ BaseAutomationHandler.call(this, node);
+
+ var e = EventType;
+ this.addListener_(e.mediaStartedPlaying, this.onMediaStartedPlaying);
+ this.addListener_(e.mediaStoppedPlaying, this.onMediaStoppedPlaying);
+};
+
+MediaAutomationHandler.prototype = {
+ __proto__: BaseAutomationHandler.prototype,
+
+ /**
+ * @param {!AutomationEvent} evt
+ */
+ onMediaStartedPlaying: function(evt) {
+ },
+
+ /**
+ * @param {!AutomationEvent} evt
+ */
+ onMediaStoppedPlaying: function(evt) {
+ }
+};
+
+}); // goog.scope
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/BUILD.gn ('k') | chrome/common/extensions/api/automation.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698