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

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

Issue 655273005: Implement AutomationNode.querySelector(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Use assertEq instead of assertTrue in testQuerySelectorFromRemovedNode() Created 6 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 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 {

Powered by Google App Engine
This is Rietveld 408576698