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..f518897492d2e0d70b90dd825467369ca873aa9e 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 }); |
@@ -253,6 +253,10 @@ AutomationRootNodeImpl.prototype = { |
isRootNode: true, |
+ load: function() { |
+ throw new Error('Load is currently not supported.'); |
aboxhall
2014/06/30 21:57:54
I don't know if we want to throw an Error here - c
David Tseng
2014/06/30 23:02:24
I don't know if we want to fail/no-op silently; th
aboxhall
2014/06/30 23:03:36
I don't know if we want to train people not to cal
aboxhall
2014/06/30 23:04:25
If we don't want people to call it, we should prob
not at google - send to devlin
2014/06/30 23:05:01
Who implements a non-crashing version of load()?
David Tseng
2014/07/01 18:48:48
Ok...made this a no-op.
The idea of having it in
aboxhall
2014/07/01 19:55:11
Right, I was just nervous that we might flip the f
|
+ }, |
+ |
get: function(id) { |
return this.axNodeDataCache_[id]; |
}, |