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 d5a52e2a2b12db50f352e81dcb57997aebf9299e..af0d637390455234136ceea60f6d6061c34ffe1a 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. |
@@ -90,6 +90,7 @@ chrome.automation.RoleType = { |
BUTTON_DROP_DOWN: 'buttonDropDown', |
CANVAS: 'canvas', |
CAPTION: 'caption', |
+ CARET: 'caret', |
CELL: 'cell', |
CHECK_BOX: 'checkBox', |
CLIENT: 'client', |
@@ -110,6 +111,7 @@ 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', |
@@ -118,6 +120,7 @@ chrome.automation.RoleType = { |
FIGURE: 'figure', |
FOOTER: 'footer', |
FORM: 'form', |
+ GENERIC_CONTAINER: 'genericContainer', |
GRID: 'grid', |
GROUP: 'group', |
HEADING: 'heading', |
@@ -214,7 +217,6 @@ chrome.automation.RoleType = { |
*/ |
chrome.automation.StateType = { |
BUSY: 'busy', |
- CHECKED: 'checked', |
COLLAPSED: 'collapsed', |
DEFAULT: 'default', |
DISABLED: 'disabled', |
@@ -260,6 +262,7 @@ chrome.automation.TreeChangeType = { |
chrome.automation.NameFromType = { |
UNINITIALIZED: 'uninitialized', |
ATTRIBUTE: 'attribute', |
+ ATTRIBUTE_EXPLICITLY_EMPTY: 'attributeExplicitlyEmpty', |
CONTENTS: 'contents', |
PLACEHOLDER: 'placeholder', |
RELATED_ELEMENT: 'relatedElement', |
@@ -367,6 +370,15 @@ chrome.automation.TreeChangeObserverFilter = { |
}; |
/** |
+ * @typedef {{ |
+ * id: number, |
+ * description: string |
+ * }} |
+ * @see https://developer.chrome.com/extensions/automation#type-CustomAction |
+ */ |
+chrome.automation.CustomAction; |
+ |
+/** |
* @constructor |
* @private |
* @see https://developer.chrome.com/extensions/automation#type-AutomationNode |
@@ -525,6 +537,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)} |
* @see https://developer.chrome.com/extensions/automation#type-url |
@@ -919,11 +938,11 @@ chrome.automation.AutomationNode.prototype.imageDataUrl; |
chrome.automation.AutomationNode.prototype.language; |
/** |
- * If a checkbox or toggle button is in the mixed state. |
- * @type {(boolean|undefined)} |
- * @see https://developer.chrome.com/extensions/automation#type-buttonMixed |
+ * Tri-state describing checkbox or radio button: 'false' | 'true' | 'mixed' |
+ * @type {(string|undefined)} |
+ * @see https://developer.chrome.com/extensions/automation#type-checked |
*/ |
-chrome.automation.AutomationNode.prototype.buttonMixed; |
+chrome.automation.AutomationNode.prototype.checked; |
/** |
* The RGBA foreground color of this subtree, as an integer. |
@@ -1042,6 +1061,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 |
* @param {number} endIndex |