Index: chrome/common/extensions/api/automation_internal.idl |
diff --git a/chrome/common/extensions/api/automation_internal.idl b/chrome/common/extensions/api/automation_internal.idl |
index 9c2a08993c3e9d7e0499f45fde61a3258d0da225..7b9063fe718cacb16b8b4a17dd55d990133e72fd 100644 |
--- a/chrome/common/extensions/api/automation_internal.idl |
+++ b/chrome/common/extensions/api/automation_internal.idl |
@@ -81,6 +81,13 @@ namespace automationInternal { |
long endIndex; |
}; |
+ // Arguments for the querySelector function. |
+ dictionary QuerySelectorRequiredParams { |
+ long treeID; |
+ long automationNodeID; |
+ DOMString selector; |
+ }; |
+ |
// Returns the accessibility tree id of the web contents who's accessibility |
// was enabled using enableTab(). |
callback EnableTabCallback = void(long tree_id); |
@@ -88,6 +95,9 @@ namespace automationInternal { |
// Callback called when enableDesktop() returns. |
callback EnableDesktopCallback = void(); |
+ // Callback called when querySelector() returns. |
+ callback QuerySelectorCallback = void(long resultAutomationNodeID); |
+ |
interface Functions { |
// Enable automation of the tab with the given id, or the active tab if no |
// tab id is given, and retrieves accessibility tree id for use in |
@@ -103,6 +113,10 @@ namespace automationInternal { |
// Performs an action on an automation node. |
static void performAction(PerformActionRequiredParams args, |
object opt_args); |
+ |
+ // Performs a query selector query. |
+ static void querySelector(QuerySelectorRequiredParams args, |
+ QuerySelectorCallback callback); |
}; |
interface Events { |