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..73611cb650bdb0e6a92649a871c86435605cb2b4 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; |
+ }; |
+ |
+ // 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,10 @@ |
// Removes a listener for the given event type and event phase. |
static void removeEventListener( |
EventType eventType, AutomationListener listener, boolean capture); |
+ |
+ // Gets the first node in this node's subtree which matches the query specified |
Devlin
2014/10/29 21:23:43
more than 80 characters
aboxhall
2014/10/30 18:34:18
Done.
|
+ // in <code>info</code>. |
+ static void query(QueryInfo info, QueryCallback callback); |
}; |
// Called when the <code>AutomationRootNode</code> for the page is available. |