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 838de6e459d89495520d0c7c29de5419a8522e17..0ae0815efc93e7d8a5f8cd4499673a9029a8e88f 100644 |
--- a/chrome/renderer/resources/extensions/automation/automation_node.js |
+++ b/chrome/renderer/resources/extensions/automation/automation_node.js |
@@ -72,15 +72,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 }); |
@@ -279,6 +279,14 @@ AutomationRootNodeImpl.prototype = { |
this.axNodeDataCache_[id] = undefined; |
}, |
+ load: function(callback) { |
+ // TODO(dtseng/aboxhall): Implement. |
+ if (!this.loaded) |
+ throw 'Unsupported state: root node is not loaded.'; |
+ |
+ callback(); |
aboxhall
2014/07/07 17:24:24
Remember that we need to schedule the callback rat
|
+ }, |
+ |
update: function(data) { |
var didUpdateRoot = false; |