Index: chrome/common/extensions/api/automation.idl |
diff --git a/chrome/common/extensions/api/automation.idl b/chrome/common/extensions/api/automation.idl |
index cbcdb2a7eadd11233f7d913f03bee4209b87322a..1661ffc150811a66662157cc73bc08ef48caa92e 100644 |
--- a/chrome/common/extensions/api/automation.idl |
+++ b/chrome/common/extensions/api/automation.idl |
@@ -8,6 +8,9 @@ |
// <em>semantic</em> structure of a page, and can be used to programmatically |
// interact with a page. |
[nocompile] namespace automation { |
+ // A listener for events on an <code>AutomationNode</code>. |
aboxhall
2014/04/01 17:49:51
Can you add a TODO to make this take an automation
David Tseng
2014/04/01 21:27:15
Done.
|
+ callback AutomationListener = void(); |
+ |
// A single node in an <code>AutomationTree</code>. |
[nocompile] dictionary AutomationNode { |
// Unique ID to identify this node. |
@@ -30,12 +33,25 @@ |
// the root node, this will be undefined. |
long? index_in_parent; |
+ // Traversal. |
static object[] children(); |
static object parent(); |
static object firstChild(); |
static object lastChild(); |
static object previousSibling(); |
static object nextSibling(); |
+ |
+ // Actions. |
+ static void doDefault(); |
+ static void focus(); |
+ static void makeVisible(); |
+ static void setSelection(long startIndex, long endIndex); |
+ |
+ // Events. |
+ static void addEventListener(DOMString eventType, |
+ AutomationListener listener, |
+ bool capture); |
+ static void removeEventListener(AutomationListener listener); |
}; |
// The automation tree for a single page. |