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

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

Issue 1365433002: Add setSelection function to automation API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@nobrailleautostartintests
Patch Set: Change setDocumentSelection to take named arguments. Created 5 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_internal.idl
diff --git a/chrome/common/extensions/api/automation_internal.idl b/chrome/common/extensions/api/automation_internal.idl
index 6f568cfac6eba888dc5bb48d03b7ed63d08dbf64..47dacc9b46f6469cdc6cf668be4514da5a05a695 100644
--- a/chrome/common/extensions/api/automation_internal.idl
+++ b/chrome/common/extensions/api/automation_internal.idl
@@ -36,10 +36,13 @@ namespace automationInternal {
ActionType actionType;
};
- // Arguments for the set_selection action supplied to performAction.
+ // Arguments for the setSelection action supplied to performAction.
dictionary SetSelectionParams {
- long startIndex;
- long endIndex;
+ // Reuses ActionRequiredParams automationNodeID to mean anchor node id,
+ // and treeID to apply to both anchor and focus node ids.
+ long focusNodeID;
+ long anchorOffset;
+ long focusOffset;
};
// Arguments for the querySelector function.
« no previous file with comments | « chrome/common/extensions/api/automation.idl ('k') | chrome/renderer/resources/extensions/automation/automation_node.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698