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

Unified Diff: chrome/common/extensions/api/automation.idl

Issue 203753002: Implement actions for Automation API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 6 years, 9 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
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.

Powered by Google App Engine
This is Rietveld 408576698