| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This file was generated by: | 5 // This file was generated by: |
| 6 // tools/json_schema_compiler/compiler.py. | 6 // tools/json_schema_compiler/compiler.py. |
| 7 // NOTE: The format of types has changed. 'FooType' is now | 7 // NOTE: The format of types has changed. 'FooType' is now |
| 8 // 'chrome.automation.FooType'. | 8 // 'chrome.automation.FooType'. |
| 9 // Please run the closure compiler before committing changes. | 9 // Please run the closure compiler before committing changes. |
| 10 // See https://chromium.googlesource.com/chromium/src/+/master/docs/closure_comp
ilation.md | 10 // See https://chromium.googlesource.com/chromium/src/+/master/docs/closure_comp
ilation.md |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 APPLICATION: 'application', | 83 APPLICATION: 'application', |
| 84 ARTICLE: 'article', | 84 ARTICLE: 'article', |
| 85 AUDIO: 'audio', | 85 AUDIO: 'audio', |
| 86 BANNER: 'banner', | 86 BANNER: 'banner', |
| 87 BLOCKQUOTE: 'blockquote', | 87 BLOCKQUOTE: 'blockquote', |
| 88 BUSY_INDICATOR: 'busyIndicator', | 88 BUSY_INDICATOR: 'busyIndicator', |
| 89 BUTTON: 'button', | 89 BUTTON: 'button', |
| 90 BUTTON_DROP_DOWN: 'buttonDropDown', | 90 BUTTON_DROP_DOWN: 'buttonDropDown', |
| 91 CANVAS: 'canvas', | 91 CANVAS: 'canvas', |
| 92 CAPTION: 'caption', | 92 CAPTION: 'caption', |
| 93 CARET: 'caret', |
| 93 CELL: 'cell', | 94 CELL: 'cell', |
| 94 CHECK_BOX: 'checkBox', | 95 CHECK_BOX: 'checkBox', |
| 95 CLIENT: 'client', | 96 CLIENT: 'client', |
| 96 COLOR_WELL: 'colorWell', | 97 COLOR_WELL: 'colorWell', |
| 97 COLUMN_HEADER: 'columnHeader', | 98 COLUMN_HEADER: 'columnHeader', |
| 98 COLUMN: 'column', | 99 COLUMN: 'column', |
| 99 COMBO_BOX: 'comboBox', | 100 COMBO_BOX: 'comboBox', |
| 100 COMPLEMENTARY: 'complementary', | 101 COMPLEMENTARY: 'complementary', |
| 101 CONTENT_INFO: 'contentInfo', | 102 CONTENT_INFO: 'contentInfo', |
| 102 DATE: 'date', | 103 DATE: 'date', |
| 103 DATE_TIME: 'dateTime', | 104 DATE_TIME: 'dateTime', |
| 104 DEFINITION: 'definition', | 105 DEFINITION: 'definition', |
| 105 DESCRIPTION_LIST_DETAIL: 'descriptionListDetail', | 106 DESCRIPTION_LIST_DETAIL: 'descriptionListDetail', |
| 106 DESCRIPTION_LIST: 'descriptionList', | 107 DESCRIPTION_LIST: 'descriptionList', |
| 107 DESCRIPTION_LIST_TERM: 'descriptionListTerm', | 108 DESCRIPTION_LIST_TERM: 'descriptionListTerm', |
| 108 DESKTOP: 'desktop', | 109 DESKTOP: 'desktop', |
| 109 DETAILS: 'details', | 110 DETAILS: 'details', |
| 110 DIALOG: 'dialog', | 111 DIALOG: 'dialog', |
| 111 DIRECTORY: 'directory', | 112 DIRECTORY: 'directory', |
| 112 DISCLOSURE_TRIANGLE: 'disclosureTriangle', | 113 DISCLOSURE_TRIANGLE: 'disclosureTriangle', |
| 113 DIV: 'div', | |
| 114 DOCUMENT: 'document', | 114 DOCUMENT: 'document', |
| 115 EMBEDDED_OBJECT: 'embeddedObject', | 115 EMBEDDED_OBJECT: 'embeddedObject', |
| 116 FEED: 'feed', | 116 FEED: 'feed', |
| 117 FIGCAPTION: 'figcaption', | 117 FIGCAPTION: 'figcaption', |
| 118 FIGURE: 'figure', | 118 FIGURE: 'figure', |
| 119 FOOTER: 'footer', | 119 FOOTER: 'footer', |
| 120 FORM: 'form', | 120 FORM: 'form', |
| 121 GENERIC_CONTAINER: 'genericContainer', |
| 121 GRID: 'grid', | 122 GRID: 'grid', |
| 122 GROUP: 'group', | 123 GROUP: 'group', |
| 123 HEADING: 'heading', | 124 HEADING: 'heading', |
| 124 IFRAME: 'iframe', | 125 IFRAME: 'iframe', |
| 125 IFRAME_PRESENTATIONAL: 'iframePresentational', | 126 IFRAME_PRESENTATIONAL: 'iframePresentational', |
| 126 IGNORED: 'ignored', | 127 IGNORED: 'ignored', |
| 127 IMAGE_MAP_LINK: 'imageMapLink', | 128 IMAGE_MAP_LINK: 'imageMapLink', |
| 128 IMAGE_MAP: 'imageMap', | 129 IMAGE_MAP: 'imageMap', |
| 129 IMAGE: 'image', | 130 IMAGE: 'image', |
| 130 INLINE_TEXT_BOX: 'inlineTextBox', | 131 INLINE_TEXT_BOX: 'inlineTextBox', |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 WEB_VIEW: 'webView', | 208 WEB_VIEW: 'webView', |
| 208 WINDOW: 'window', | 209 WINDOW: 'window', |
| 209 }; | 210 }; |
| 210 | 211 |
| 211 /** | 212 /** |
| 212 * @enum {string} | 213 * @enum {string} |
| 213 * @see https://developer.chrome.com/extensions/automation#type-StateType | 214 * @see https://developer.chrome.com/extensions/automation#type-StateType |
| 214 */ | 215 */ |
| 215 chrome.automation.StateType = { | 216 chrome.automation.StateType = { |
| 216 BUSY: 'busy', | 217 BUSY: 'busy', |
| 217 CHECKED: 'checked', | |
| 218 COLLAPSED: 'collapsed', | 218 COLLAPSED: 'collapsed', |
| 219 DEFAULT: 'default', | 219 DEFAULT: 'default', |
| 220 DISABLED: 'disabled', | 220 DISABLED: 'disabled', |
| 221 EDITABLE: 'editable', | 221 EDITABLE: 'editable', |
| 222 EXPANDED: 'expanded', | 222 EXPANDED: 'expanded', |
| 223 FOCUSABLE: 'focusable', | 223 FOCUSABLE: 'focusable', |
| 224 FOCUSED: 'focused', | 224 FOCUSED: 'focused', |
| 225 HASPOPUP: 'haspopup', | 225 HASPOPUP: 'haspopup', |
| 226 HORIZONTAL: 'horizontal', | 226 HORIZONTAL: 'horizontal', |
| 227 HOVERED: 'hovered', | 227 HOVERED: 'hovered', |
| 228 INVISIBLE: 'invisible', | 228 INVISIBLE: 'invisible', |
| 229 LINKED: 'linked', | 229 LINKED: 'linked', |
| 230 MULTILINE: 'multiline', | 230 MULTILINE: 'multiline', |
| 231 MULTISELECTABLE: 'multiselectable', | 231 MULTISELECTABLE: 'multiselectable', |
| 232 OFFSCREEN: 'offscreen', | 232 OFFSCREEN: 'offscreen', |
| 233 PRESSED: 'pressed', | |
| 234 PROTECTED: 'protected', | 233 PROTECTED: 'protected', |
| 235 READ_ONLY: 'readOnly', | 234 READ_ONLY: 'readOnly', |
| 236 REQUIRED: 'required', | 235 REQUIRED: 'required', |
| 237 RICHLY_EDITABLE: 'richlyEditable', | 236 RICHLY_EDITABLE: 'richlyEditable', |
| 238 SELECTABLE: 'selectable', | 237 SELECTABLE: 'selectable', |
| 239 SELECTED: 'selected', | 238 SELECTED: 'selected', |
| 240 VERTICAL: 'vertical', | 239 VERTICAL: 'vertical', |
| 241 VISITED: 'visited', | 240 VISITED: 'visited', |
| 242 }; | 241 }; |
| 243 | 242 |
| 244 /** | 243 /** |
| 245 * @enum {string} | 244 * @enum {string} |
| 246 * @see https://developer.chrome.com/extensions/automation#type-TreeChangeType | 245 * @see https://developer.chrome.com/extensions/automation#type-TreeChangeType |
| 247 */ | 246 */ |
| 248 chrome.automation.TreeChangeType = { | 247 chrome.automation.TreeChangeType = { |
| 249 NODE_CREATED: 'nodeCreated', | 248 NODE_CREATED: 'nodeCreated', |
| 250 SUBTREE_CREATED: 'subtreeCreated', | 249 SUBTREE_CREATED: 'subtreeCreated', |
| 251 NODE_CHANGED: 'nodeChanged', | 250 NODE_CHANGED: 'nodeChanged', |
| 252 TEXT_CHANGED: 'textChanged', | 251 TEXT_CHANGED: 'textChanged', |
| 253 NODE_REMOVED: 'nodeRemoved', | 252 NODE_REMOVED: 'nodeRemoved', |
| 254 }; | 253 }; |
| 255 | 254 |
| 256 /** | 255 /** |
| 257 * @enum {string} | 256 * @enum {string} |
| 258 * @see https://developer.chrome.com/extensions/automation#type-NameFromType | 257 * @see https://developer.chrome.com/extensions/automation#type-NameFromType |
| 259 */ | 258 */ |
| 260 chrome.automation.NameFromType = { | 259 chrome.automation.NameFromType = { |
| 261 UNINITIALIZED: 'uninitialized', | 260 UNINITIALIZED: 'uninitialized', |
| 262 ATTRIBUTE: 'attribute', | 261 ATTRIBUTE: 'attribute', |
| 262 ATTRIBUTE_EXPLICITLY_EMPTY: 'attributeExplicitlyEmpty', |
| 263 CONTENTS: 'contents', | 263 CONTENTS: 'contents', |
| 264 PLACEHOLDER: 'placeholder', | 264 PLACEHOLDER: 'placeholder', |
| 265 RELATED_ELEMENT: 'relatedElement', | 265 RELATED_ELEMENT: 'relatedElement', |
| 266 VALUE: 'value', | 266 VALUE: 'value', |
| 267 }; | 267 }; |
| 268 | 268 |
| 269 /** | 269 /** |
| 270 * @typedef {{ | 270 * @typedef {{ |
| 271 * left: number, | 271 * left: number, |
| 272 * top: number, | 272 * top: number, |
| (...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 912 chrome.automation.AutomationNode.prototype.imageDataUrl; | 912 chrome.automation.AutomationNode.prototype.imageDataUrl; |
| 913 | 913 |
| 914 /** | 914 /** |
| 915 * The language code for this subtree. | 915 * The language code for this subtree. |
| 916 * @type {(string|undefined)} | 916 * @type {(string|undefined)} |
| 917 * @see https://developer.chrome.com/extensions/automation#type-language | 917 * @see https://developer.chrome.com/extensions/automation#type-language |
| 918 */ | 918 */ |
| 919 chrome.automation.AutomationNode.prototype.language; | 919 chrome.automation.AutomationNode.prototype.language; |
| 920 | 920 |
| 921 /** | 921 /** |
| 922 * If a checkbox or toggle button is in the mixed state. | 922 * Tri-state describing checkbox or radio button: 'false' | 'true' | 'mixed' |
| 923 * @type {(boolean|undefined)} | 923 * @type {(string|undefined)} |
| 924 * @see https://developer.chrome.com/extensions/automation#type-buttonMixed | 924 * @see https://developer.chrome.com/extensions/automation#type-checked |
| 925 */ | 925 */ |
| 926 chrome.automation.AutomationNode.prototype.buttonMixed; | 926 chrome.automation.AutomationNode.prototype.checked; |
| 927 | 927 |
| 928 /** | 928 /** |
| 929 * The RGBA foreground color of this subtree, as an integer. | 929 * The RGBA foreground color of this subtree, as an integer. |
| 930 * @type {(number|undefined)} | 930 * @type {(number|undefined)} |
| 931 * @see https://developer.chrome.com/extensions/automation#type-color | 931 * @see https://developer.chrome.com/extensions/automation#type-color |
| 932 */ | 932 */ |
| 933 chrome.automation.AutomationNode.prototype.color; | 933 chrome.automation.AutomationNode.prototype.color; |
| 934 | 934 |
| 935 /** | 935 /** |
| 936 * The RGBA background color of this subtree, as an integer. | 936 * The RGBA background color of this subtree, as an integer. |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1208 * tree between the two node/offset pairs gets included in the selection. The | 1208 * tree between the two node/offset pairs gets included in the selection. The |
| 1209 * anchor is where the user started the selection, while the focus is the point | 1209 * anchor is where the user started the selection, while the focus is the point |
| 1210 * at which the selection gets extended e.g. when dragging with a mouse or using | 1210 * at which the selection gets extended e.g. when dragging with a mouse or using |
| 1211 * the keyboard. For nodes with the role staticText, the offset gives the | 1211 * the keyboard. For nodes with the role staticText, the offset gives the |
| 1212 * character offset within the value where the selection starts or ends, | 1212 * character offset within the value where the selection starts or ends, |
| 1213 * respectively. | 1213 * respectively. |
| 1214 * @param {!chrome.automation.SetDocumentSelectionParams} params | 1214 * @param {!chrome.automation.SetDocumentSelectionParams} params |
| 1215 * @see https://developer.chrome.com/extensions/automation#method-setDocumentSel
ection | 1215 * @see https://developer.chrome.com/extensions/automation#method-setDocumentSel
ection |
| 1216 */ | 1216 */ |
| 1217 chrome.automation.setDocumentSelection = function(params) {}; | 1217 chrome.automation.setDocumentSelection = function(params) {}; |
| OLD | NEW |