Chromium Code Reviews| 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 3b018be6a88f53dbefca3cd72337da5bb21ff632..7c4419fc399b64308b084ae36a9e0a951c038f37 100644 |
| --- a/chrome/common/extensions/api/automation_internal.idl |
| +++ b/chrome/common/extensions/api/automation_internal.idl |
| @@ -28,6 +28,9 @@ namespace automationInternal { |
| // tree. See ui/accessibility/ax_tree_update.h for an extended explanation of |
| // the tree update format. |
| dictionary AXEventParams { |
| + // The process id of the renderer host. |
| + long process_id; |
| + |
| // The routing id of the web contents that this update is for. |
| long routing_id; |
| @@ -39,14 +42,33 @@ namespace automationInternal { |
| AXNodeData[] nodes; |
| }; |
| - // Returns the routing_id of the tab whose accessibility was enabled using |
| - // enable(). |
| - callback EnableCallback = void(long routing_id); |
| + // All possible actions that can be performed on automation nodes. |
| + enum ActionType { |
| + focus, |
| + do_default, |
| + make_visible, |
| + set_selection |
| + }; |
| + |
| + dictionary SetSelectionParams { |
| + long start_index; |
| + long end_index; |
| + }; |
| + |
| + // Returns the process_id and routing_id of the tab whose accessibility was |
| + // enabled using enable(). |
| + callback EnableCallback = void(long process_id, long routing_id); |
|
not at google - send to devlin
2014/04/02 21:52:14
if this gets any longer you should pass a dictiona
David Tseng
2014/04/03 01:27:41
Ok.
|
| interface Functions { |
| // Enable automation of the active tab and retrieves its routing id for use |
| // in future updates. |
| static void enableCurrentTab(EnableCallback callback); |
| + |
| + static void performAction(long processId, |
| + long routingId, |
| + long automationId, |
| + ActionType actionType, |
| + object opt_args); |
|
not at google - send to devlin
2014/04/02 21:52:14
this is a very long argument list, strongly consid
David Tseng
2014/04/03 01:27:41
Done.
|
| }; |
| interface Events { |