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

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

Issue 1365433002: Add setSelection function to automation API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@nobrailleautostartintests
Patch Set: rebase Created 5 years, 3 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.idl
diff --git a/chrome/common/extensions/api/automation.idl b/chrome/common/extensions/api/automation.idl
index b49c3a5e179c58bd70ee76efc89f179bfb0eda68..71f3bbeb1dacdb6f19e8b954c76512e5a9dc350a 100644
--- a/chrome/common/extensions/api/automation.idl
+++ b/chrome/common/extensions/api/automation.idl
@@ -312,7 +312,7 @@
// The root node of the tree containing this AutomationNode.
AutomationNode root;
- // Whether this AutomationNode is root node.
+ // Whether this AutomationNode is a root node.
boolean isRootNode;
// The role of this node.
@@ -422,6 +422,15 @@
DOMString textInputType;
//
+ // Tree selection attributes (available on root nodes only)
+ //
+
+ AutomationNode? anchorObject;
+ long? anchorOffset;
+ AutomationNode? focusObject;
+ long? focusOffset;
David Tseng 2015/09/23 17:57:41 Please document all of these -- they get picked up
+
+ //
// Range attributes.
//
@@ -553,5 +562,12 @@
// Remove a tree change observer.
[nocompile] static void removeTreeChangeObserver(
TreeChangeObserver observer);
+
+ // Sets the selection in a tree.
David Tseng 2015/09/23 17:57:41 Needs more detail. The anchor and focus nodes need
+ [nocompile] static void setSelection(
David Tseng 2015/09/23 17:57:41 This is now a little confusing as there's two vers
+ [instanceOf=AutomationNode] object anchorObject,
David Tseng 2015/09/23 17:57:41 Does the instanceOf property do anything here?
+ long anchorOffset,
David Tseng 2015/09/23 17:57:41 Rather than this list of params, use a dictionary
+ [instanceOf=AutomationNode] object focusObject,
+ long focusOffset);
};
};

Powered by Google App Engine
This is Rietveld 408576698