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

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: Fix heap-use-after-free issue by not keeping a scoped_ptr to automation_api_helper in extension_hel… Created 6 years, 1 month 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 9c2a08993c3e9d7e0499f45fde61a3258d0da225..7b9063fe718cacb16b8b4a17dd55d990133e72fd 100644
--- a/chrome/common/extensions/api/automation_internal.idl
+++ b/chrome/common/extensions/api/automation_internal.idl
@@ -81,6 +81,13 @@ namespace automationInternal {
long endIndex;
};
+ // Arguments for the querySelector function.
+ dictionary QuerySelectorRequiredParams {
+ long treeID;
+ long automationNodeID;
+ DOMString selector;
+ };
+
// Returns the accessibility tree id of the web contents who's accessibility
// was enabled using enableTab().
callback EnableTabCallback = void(long tree_id);
@@ -88,6 +95,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 accessibility tree id for use in
@@ -103,6 +113,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 {
« 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