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

Unified Diff: chrome/renderer/resources/extensions/automation/automation_node.js

Issue 346703002: Small cleanups in automation_node.js. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nuke todo Created 6 years, 6 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/extensions/api/automation.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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];
},
« no previous file with comments | « chrome/common/extensions/api/automation.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698