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

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: Created 6 years, 5 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..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;
« 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