Chromium Code Reviews| 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..e905bdab6b891dffc9122b20b6abb39e68536773 100644 |
| --- a/chrome/common/extensions/api/automation.idl |
| +++ b/chrome/common/extensions/api/automation.idl |
| @@ -8,6 +8,10 @@ |
| // <em>semantic</em> structure of a page, and can be used to programmatically |
| // interact with a page. |
| [nocompile] namespace automation { |
| + // TODO(dtseng/aboxhall): Make this take an |automation.Event| param. |
|
not at google - send to devlin
2014/04/02 21:52:14
this TODO is going to show up in the official deve
aboxhall
2014/04/02 21:57:26
Can we hide this from the official developer docs
|
| + // A listener for events on an <code>AutomationNode</code>. |
| + callback AutomationListener = void(); |
| + |
| // A single node in an <code>AutomationTree</code>. |
| [nocompile] dictionary AutomationNode { |
| // Unique ID to identify this node. |
| @@ -30,12 +34,25 @@ |
| // the root node, this will be undefined. |
| long? index_in_parent; |
|
not at google - send to devlin
2014/04/02 21:52:14
as a general comment in here and automation_intern
David Tseng
2014/04/03 01:27:41
I think I got them all :).
This is with the notab
|
| + // 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. |