| 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 8983e1bef4a51b80a1877bd840b2566ce4d2ba98..4a89e8edc0d7fe64ade8806a7ae6d460c5651e41 100644
|
| --- a/chrome/renderer/resources/extensions/automation/automation_node.js
|
| +++ b/chrome/renderer/resources/extensions/automation/automation_node.js
|
| @@ -78,15 +78,15 @@ AutomationNodeImpl.prototype = {
|
| this.performAction_('doDefault');
|
| },
|
|
|
| - focus: function(opt_callback) {
|
| + focus: function() {
|
| this.performAction_('focus');
|
| },
|
|
|
| - makeVisible: function(opt_callback) {
|
| + makeVisible: function() {
|
| this.performAction_('makeVisible');
|
| },
|
|
|
| - setSelection: function(startIndex, endIndex, opt_callback) {
|
| + setSelection: function(startIndex, endIndex) {
|
| this.performAction_('setSelection',
|
| { startIndex: startIndex,
|
| endIndex: endIndex });
|
| @@ -378,6 +378,14 @@ AutomationRootNodeImpl.prototype = {
|
| delete this.axNodeDataCache_[id];
|
| },
|
|
|
| + load: function(callback) {
|
| + // TODO(dtseng/aboxhall): Implement.
|
| + if (!this.loaded)
|
| + throw 'Unsupported state: root node is not loaded.';
|
| +
|
| + setTimeout(callback, 0);
|
| + },
|
| +
|
| deleteOldChildren_: function(node, newChildIds) {
|
| // Create a set of child ids in |src| for fast lookup, and return false
|
| // if a duplicate is found;
|
|
|