| 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 e95701decfb01da1e090c82ec5a5ece54484769d..772efcf7742af05bcebb0a61171df8022b67add1 100644
|
| --- a/chrome/common/extensions/api/automation_internal.idl
|
| +++ b/chrome/common/extensions/api/automation_internal.idl
|
| @@ -85,6 +85,14 @@ namespace automationInternal {
|
| long endIndex;
|
| };
|
|
|
| + // Arguments for the querySelector function.
|
| + dictionary QuerySelectorRequiredParams {
|
| + long processID;
|
| + long routingID;
|
| + long automationNodeID;
|
| + DOMString selector;
|
| + };
|
| +
|
| // Returns the process id and routing id of the tab whose accessibility was
|
| // enabled using enable().
|
| callback EnableTabCallback = void(long processID, long routingID);
|
| @@ -92,6 +100,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 its process and routing ids for use in
|
| @@ -104,6 +115,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 {
|
|
|