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

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: Remove repricated API. 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..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.

Powered by Google App Engine
This is Rietveld 408576698