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

Side by Side Diff: chrome/renderer/resources/extensions/automation/automation_node.js

Issue 2550593003: Expose media controls to accessibility (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 var AutomationEvent = require('automationEvent').AutomationEvent; 5 var AutomationEvent = require('automationEvent').AutomationEvent;
6 var automationInternal = 6 var automationInternal =
7 require('binding').Binding.create('automationInternal').generate(); 7 require('binding').Binding.create('automationInternal').generate();
8 var exceptionHandler = require('uncaught_exception_handler'); 8 var exceptionHandler = require('uncaught_exception_handler');
9 var IsInteractPermitted = 9 var IsInteractPermitted =
10 requireNative('automationInternal').IsInteractPermitted; 10 requireNative('automationInternal').IsInteractPermitted;
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 }, 387 },
388 388
389 setSequentialFocusNavigationStartingPoint: function() { 389 setSequentialFocusNavigationStartingPoint: function() {
390 this.performAction_('setSequentialFocusNavigationStartingPoint'); 390 this.performAction_('setSequentialFocusNavigationStartingPoint');
391 }, 391 },
392 392
393 showContextMenu: function() { 393 showContextMenu: function() {
394 this.performAction_('showContextMenu'); 394 this.performAction_('showContextMenu');
395 }, 395 },
396 396
397 startDucking: function() {
398 this.performAction_('startDucking');
399 },
400
401 stopDucking: function() {
402 this.performAction_('stopDucking');
403 },
404
397 domQuerySelector: function(selector, callback) { 405 domQuerySelector: function(selector, callback) {
398 if (!this.rootImpl) 406 if (!this.rootImpl)
399 callback(); 407 callback();
400 automationInternal.querySelector( 408 automationInternal.querySelector(
401 { treeID: this.rootImpl.treeID, 409 { treeID: this.rootImpl.treeID,
402 automationNodeID: this.id, 410 automationNodeID: this.id,
403 selector: selector }, 411 selector: selector },
404 $Function.bind(this.domQuerySelectorCallback_, this, callback)); 412 $Function.bind(this.domQuerySelectorCallback_, this, callback));
405 }, 413 },
406 414
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after
1068 'doDefault', 1076 'doDefault',
1069 'find', 1077 'find',
1070 'findAll', 1078 'findAll',
1071 'focus', 1079 'focus',
1072 'getImageData', 1080 'getImageData',
1073 'makeVisible', 1081 'makeVisible',
1074 'matches', 1082 'matches',
1075 'setSelection', 1083 'setSelection',
1076 'setSequentialFocusNavigationStartingPoint', 1084 'setSequentialFocusNavigationStartingPoint',
1077 'showContextMenu', 1085 'showContextMenu',
1086 'startDucking',
1087 'stopDucking',
1078 'addEventListener', 1088 'addEventListener',
1079 'removeEventListener', 1089 'removeEventListener',
1080 'domQuerySelector', 1090 'domQuerySelector',
1081 'toString', 1091 'toString',
1082 'boundsForRange', 1092 'boundsForRange',
1083 ], 1093 ],
1084 readonly: $Array.concat(publicAttributes, [ 1094 readonly: $Array.concat(publicAttributes, [
1085 'parent', 1095 'parent',
1086 'firstChild', 1096 'firstChild',
1087 'lastChild', 1097 'lastChild',
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
1125 utils.defineProperty(AutomationRootNode, 'getOrCreate', function(treeID) { 1135 utils.defineProperty(AutomationRootNode, 'getOrCreate', function(treeID) {
1126 return AutomationRootNodeImpl.getOrCreate(treeID); 1136 return AutomationRootNodeImpl.getOrCreate(treeID);
1127 }); 1137 });
1128 1138
1129 utils.defineProperty(AutomationRootNode, 'destroy', function(treeID) { 1139 utils.defineProperty(AutomationRootNode, 'destroy', function(treeID) {
1130 AutomationRootNodeImpl.destroy(treeID); 1140 AutomationRootNodeImpl.destroy(treeID);
1131 }); 1141 });
1132 1142
1133 exports.$set('AutomationNode', AutomationNode); 1143 exports.$set('AutomationNode', AutomationNode);
1134 exports.$set('AutomationRootNode', AutomationRootNode); 1144 exports.$set('AutomationRootNode', AutomationRootNode);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698