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

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

Issue 2873373005: Add custom action support (Closed)
Patch Set: Removed MinVersion from struct. Created 3 years, 6 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 56b61ba75bab85f8c6e01a2a177a147e86597aaa..0c32d7102d1d241e9829bb9f4d37aeda51f6011a 100644
--- a/chrome/common/extensions/api/automation.idl
+++ b/chrome/common/extensions/api/automation.idl
@@ -366,6 +366,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.
@@ -449,6 +454,9 @@
// The target of an in-page link.
AutomationNode? inPageLinkTarget;
+ // An array of custom actions.
+ CustomAction[]? customActions;
+
//
// Link attributes.
//
@@ -710,6 +718,9 @@
// Scrolls this node to make it visible.
static void makeVisible();
+ // Performs custom action.
+ static void performCustomAction(long customActionId);
+
// Sets selection within a text field.
static void setSelection(long startIndex, long endIndex);

Powered by Google App Engine
This is Rietveld 408576698