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

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

Issue 2479893002: Revert of Use setSequentialFocusNavigationStartingPoint in ChromeVox (Closed)
Patch Set: Created 4 years, 1 month 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 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 361
362 setSelection: function(startIndex, endIndex) { 362 setSelection: function(startIndex, endIndex) {
363 if (this.role == 'textField' || this.role == 'textBox') { 363 if (this.role == 'textField' || this.role == 'textBox') {
364 this.performAction_('setSelection', 364 this.performAction_('setSelection',
365 { focusNodeID: this.id, 365 { focusNodeID: this.id,
366 anchorOffset: startIndex, 366 anchorOffset: startIndex,
367 focusOffset: endIndex }); 367 focusOffset: endIndex });
368 } 368 }
369 }, 369 },
370 370
371 setSequentialFocusNavigationStartingPoint: function() {
372 this.performAction_('setSequentialFocusNavigationStartingPoint');
373 },
374
375 showContextMenu: function() { 371 showContextMenu: function() {
376 this.performAction_('showContextMenu'); 372 this.performAction_('showContextMenu');
377 }, 373 },
378 374
379 domQuerySelector: function(selector, callback) { 375 domQuerySelector: function(selector, callback) {
380 if (!this.rootImpl) 376 if (!this.rootImpl)
381 callback(); 377 callback();
382 automationInternal.querySelector( 378 automationInternal.querySelector(
383 { treeID: this.rootImpl.treeID, 379 { treeID: this.rootImpl.treeID,
384 automationNodeID: this.id, 380 automationNodeID: this.id,
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after
1030 } 1026 }
1031 utils.expose(AutomationNode, AutomationNodeImpl, { 1027 utils.expose(AutomationNode, AutomationNodeImpl, {
1032 functions: [ 1028 functions: [
1033 'doDefault', 1029 'doDefault',
1034 'find', 1030 'find',
1035 'findAll', 1031 'findAll',
1036 'focus', 1032 'focus',
1037 'makeVisible', 1033 'makeVisible',
1038 'matches', 1034 'matches',
1039 'setSelection', 1035 'setSelection',
1040 'setSequentialFocusNavigationStartingPoint',
1041 'showContextMenu', 1036 'showContextMenu',
1042 'addEventListener', 1037 'addEventListener',
1043 'removeEventListener', 1038 'removeEventListener',
1044 'domQuerySelector', 1039 'domQuerySelector',
1045 'toString', 1040 'toString',
1046 'boundsForRange', 1041 'boundsForRange',
1047 ], 1042 ],
1048 readonly: $Array.concat(publicAttributes, [ 1043 readonly: $Array.concat(publicAttributes, [
1049 'parent', 1044 'parent',
1050 'firstChild', 1045 'firstChild',
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
1087 utils.defineProperty(AutomationRootNode, 'getOrCreate', function(treeID) { 1082 utils.defineProperty(AutomationRootNode, 'getOrCreate', function(treeID) {
1088 return AutomationRootNodeImpl.getOrCreate(treeID); 1083 return AutomationRootNodeImpl.getOrCreate(treeID);
1089 }); 1084 });
1090 1085
1091 utils.defineProperty(AutomationRootNode, 'destroy', function(treeID) { 1086 utils.defineProperty(AutomationRootNode, 'destroy', function(treeID) {
1092 AutomationRootNodeImpl.destroy(treeID); 1087 AutomationRootNodeImpl.destroy(treeID);
1093 }); 1088 });
1094 1089
1095 exports.$set('AutomationNode', AutomationNode); 1090 exports.$set('AutomationNode', AutomationNode);
1096 exports.$set('AutomationRootNode', AutomationRootNode); 1091 exports.$set('AutomationRootNode', AutomationRootNode);
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/automation_internal.idl ('k') | content/renderer/accessibility/render_accessibility_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698