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

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

Issue 2873373005: Add custom action support (Closed)
Patch Set: Migrate to DataObjectBuilder. 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 4b8b0e7792422d8e37f2f64733207b8aeddb22e7..0df0d89b36da846b766cf23aa40a63b80ee7fdd5 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.
//
@@ -722,6 +730,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