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

Unified Diff: third_party/closure_compiler/externs/automation.js

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
« no previous file with comments | « content/renderer/accessibility/render_accessibility_impl.cc ('k') | ui/accessibility/ax_action_data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/closure_compiler/externs/automation.js
diff --git a/third_party/closure_compiler/externs/automation.js b/third_party/closure_compiler/externs/automation.js
index 6bcb195c65ea05b1e489cea17030957d412a2ed2..b06a678e861c8b187b68197d3393d7ec7db9b8e2 100644
--- a/third_party/closure_compiler/externs/automation.js
+++ b/third_party/closure_compiler/externs/automation.js
@@ -366,6 +366,15 @@ chrome.automation.TreeChangeObserverFilter = {
ALL_TREE_CHANGES: 'allTreeChanges',
};
+/**
+ * @typedef {{
+ * id: number,
+ * description: string
+ * }}
+ * @see https://developer.chrome.com/extensions/automation#type-CustomAction
+ */
+chrome.automation.CustomAction;
+
/**
* @constructor
* @private
@@ -531,6 +540,13 @@ chrome.automation.AutomationNode.prototype.activeDescendant;
*/
chrome.automation.AutomationNode.prototype.inPageLinkTarget;
+/**
+ * An array of custom actions.
+ * @type {(!Array<!chrome.automation.CustomAction>|undefined)}
+ * @see https://developer.chrome.com/extensions/automation#type-customActions
+ */
+chrome.automation.AutomationNode.prototype.customActions;
+
/**
* The URL that this link will navigate to.
* @type {(string|undefined)}
@@ -1076,6 +1092,13 @@ chrome.automation.AutomationNode.prototype.hitTest = function(x, y, eventToFire)
*/
chrome.automation.AutomationNode.prototype.makeVisible = function() {};
+/**
+ * Performs custom action.
+ * @param {number} customActionId
+ * @see https://developer.chrome.com/extensions/automation#method-performCustomAction
+ */
+chrome.automation.AutomationNode.prototype.performCustomAction = function(customActionId) {};
+
/**
* Sets selection within a text field.
* @param {number} startIndex
« no previous file with comments | « content/renderer/accessibility/render_accessibility_impl.cc ('k') | ui/accessibility/ax_action_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698