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

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

Issue 2873373005: Add custom action support (Closed)
Patch Set: Fix format. 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: 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 128d92feb3eaf68d198f9a6ba9be246ed995741b..469fe4d7c363c8c3e3f22d637f92f02d5e7e18ff 100644
--- a/third_party/closure_compiler/externs/automation.js
+++ b/third_party/closure_compiler/externs/automation.js
@@ -3,7 +3,7 @@
// found in the LICENSE file.
// This file was generated by:
-// tools/json_schema_compiler/compiler.py.
+// ./tools/json_schema_compiler/compiler.py.
// NOTE: The format of types has changed. 'FooType' is now
// 'chrome.automation.FooType'.
// Please run the closure compiler before committing changes.
@@ -111,6 +111,8 @@ chrome.automation.RoleType = {
DIALOG: 'dialog',
DIRECTORY: 'directory',
DISCLOSURE_TRIANGLE: 'disclosureTriangle',
+ // TODO(yawano): Remove div from extern file. This role no longer exists.
+ DIV: 'div',
DOCUMENT: 'document',
EMBEDDED_OBJECT: 'embeddedObject',
FEED: 'feed',
@@ -366,6 +368,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 +542,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)}
@@ -1048,6 +1066,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

Powered by Google App Engine
This is Rietveld 408576698