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

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: Rebase. 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 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;
« 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