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

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

Issue 655273005: Implement AutomationNode.querySelector(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 6 years, 2 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 2c48253a86f695ee4cf2d8bf473f5cb6924041dc..f6c50fe4090065ecfffd511221a59e28c6e15ac7 100644
--- a/chrome/common/extensions/api/automation.idl
+++ b/chrome/common/extensions/api/automation.idl
@@ -220,6 +220,14 @@
long height;
};
+ // The parameters for a <code>query</code>.
+ dictionary QueryInfo {
+ DOMString? querySelector;
David Tseng 2014/10/27 20:44:35 Is this optional?
aboxhall 2014/10/28 23:43:56 See below.
+ };
David Tseng 2014/10/27 20:44:35 Will there be additional info members? If not, the
aboxhall 2014/10/28 23:43:56 Right, I guess my CL description was a little misl
dmazzoni 2014/10/29 00:00:10 My vote is to have two separate APIs. I'll comment
+
+ // Called when the result for a <code>query</code> is available.
+ callback QueryCallback = void(AutomationNode node);
+
// An event in the Automation tree.
[nocompile, noinline_doc] dictionary AutomationEvent {
// The $(ref:automation.AutomationNode) to which the event was targeted.
@@ -292,6 +300,8 @@
// Removes a listener for the given event type and event phase.
static void removeEventListener(
EventType eventType, AutomationListener listener, boolean capture);
+
David Tseng 2014/10/27 20:44:35 nit: Docs?
aboxhall 2014/10/28 23:43:56 Done.
+ static void query(QueryInfo info, QueryCallback callback);
};
// Called when the <code>AutomationRootNode</code> for the page is available.

Powered by Google App Engine
This is Rietveld 408576698