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

Unified Diff: chrome/renderer/resources/extensions/automation/automation_node.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
Index: chrome/renderer/resources/extensions/automation/automation_node.js
diff --git a/chrome/renderer/resources/extensions/automation/automation_node.js b/chrome/renderer/resources/extensions/automation/automation_node.js
index 54c308a33cd20544c1735c75d89f2e185224811b..225c0d2e7c57b185f67eec87ac6bff5fe7cef508 100644
--- a/chrome/renderer/resources/extensions/automation/automation_node.js
+++ b/chrome/renderer/resources/extensions/automation/automation_node.js
@@ -377,6 +377,10 @@ AutomationNodeImpl.prototype = {
this.performAction_('makeVisible');
},
+ resumeMedia: function() {
+ this.performAction_('resumeMedia');
+ },
+
setSelection: function(startIndex, endIndex) {
if (this.role == 'textField' || this.role == 'textBox') {
this.performAction_('setSelection',
@@ -394,6 +398,18 @@ AutomationNodeImpl.prototype = {
this.performAction_('showContextMenu');
},
+ startDuckingMedia: function() {
+ this.performAction_('startDuckingMedia');
+ },
+
+ stopDuckingMedia: function() {
+ this.performAction_('stopDuckingMedia');
+ },
+
+ suspendMedia: function() {
+ this.performAction_('suspendMedia');
+ },
+
domQuerySelector: function(selector, callback) {
if (!this.rootImpl)
callback();
@@ -1072,9 +1088,13 @@ utils.expose(AutomationNode, AutomationNodeImpl, {
'getImageData',
'makeVisible',
'matches',
+ 'resumeMedia',
'setSelection',
'setSequentialFocusNavigationStartingPoint',
'showContextMenu',
+ 'startDuckingMedia',
+ 'stopDuckingMedia',
+ 'suspendMedia',
'addEventListener',
'removeEventListener',
'domQuerySelector',

Powered by Google App Engine
This is Rietveld 408576698