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

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

Issue 2873373005: Add custom action support (Closed)
Patch Set: Fix a few files. Created 3 years, 7 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 4c6e957966b3bf13197774471f196679cd891c06..61f6d139468bebf3d7d5577edad0c24611a4776f 100644
--- a/chrome/common/extensions/api/automation.idl
+++ b/chrome/common/extensions/api/automation.idl
@@ -367,6 +367,11 @@
// A listener for changes on the <code>AutomationNode</code> tree.
callback TreeChangeObserver = void(TreeChange treeChange);
+ dictionary CustomAction {
+ long id;
+ DOMString description;
+ };
+
// A single node in an Automation tree.
[nocompile, noinline_doc] dictionary AutomationNode {
// The root node of the tree containing this AutomationNode.
@@ -447,6 +452,9 @@
// The target of an in-page link.
AutomationNode? inPageLinkTarget;
+ // An array of custom actions.
+ CustomAction[]? customActions;
+
//
// Link attributes.
//
@@ -708,6 +716,9 @@
// Scrolls this node to make it visible.
static void makeVisible();
+ // Performs custom action.
+ static void performCustomAction(long customActionId);
dmazzoni 2017/06/06 03:06:00 Would it be cleaner if this took a CustomAction as
yawano 2017/06/08 09:25:29 Done. Yes, also it should be more extensible.
+
// Sets selection within a text field.
static void setSelection(long startIndex, long endIndex);

Powered by Google App Engine
This is Rietveld 408576698