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 |
11 | 11 |
12 /** @fileoverview Externs generated from namespace: automation */ | 12 /** @fileoverview Externs generated from namespace: automation */ |
13 | 13 |
14 /** | 14 /** |
15 * @const | 15 * @const |
16 */ | 16 */ |
(...skipping 66 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', |
| 114 // TODO(yawano): Remove div from extern file. This role no longer exists. |
113 DIV: 'div', | 115 DIV: 'div', |
114 DOCUMENT: 'document', | 116 DOCUMENT: 'document', |
115 EMBEDDED_OBJECT: 'embeddedObject', | 117 EMBEDDED_OBJECT: 'embeddedObject', |
116 FEED: 'feed', | 118 FEED: 'feed', |
117 FIGCAPTION: 'figcaption', | 119 FIGCAPTION: 'figcaption', |
118 FIGURE: 'figure', | 120 FIGURE: 'figure', |
119 FOOTER: 'footer', | 121 FOOTER: 'footer', |
120 FORM: 'form', | 122 FORM: 'form', |
| 123 GENERIC_CONTAINER: 'genericContainer', |
121 GRID: 'grid', | 124 GRID: 'grid', |
122 GROUP: 'group', | 125 GROUP: 'group', |
123 HEADING: 'heading', | 126 HEADING: 'heading', |
124 IFRAME: 'iframe', | 127 IFRAME: 'iframe', |
125 IFRAME_PRESENTATIONAL: 'iframePresentational', | 128 IFRAME_PRESENTATIONAL: 'iframePresentational', |
126 IGNORED: 'ignored', | 129 IGNORED: 'ignored', |
127 IMAGE_MAP_LINK: 'imageMapLink', | 130 IMAGE_MAP_LINK: 'imageMapLink', |
128 IMAGE_MAP: 'imageMap', | 131 IMAGE_MAP: 'imageMap', |
129 IMAGE: 'image', | 132 IMAGE: 'image', |
130 INLINE_TEXT_BOX: 'inlineTextBox', | 133 INLINE_TEXT_BOX: 'inlineTextBox', |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 WEB_VIEW: 'webView', | 210 WEB_VIEW: 'webView', |
208 WINDOW: 'window', | 211 WINDOW: 'window', |
209 }; | 212 }; |
210 | 213 |
211 /** | 214 /** |
212 * @enum {string} | 215 * @enum {string} |
213 * @see https://developer.chrome.com/extensions/automation#type-StateType | 216 * @see https://developer.chrome.com/extensions/automation#type-StateType |
214 */ | 217 */ |
215 chrome.automation.StateType = { | 218 chrome.automation.StateType = { |
216 BUSY: 'busy', | 219 BUSY: 'busy', |
217 CHECKED: 'checked', | |
218 COLLAPSED: 'collapsed', | 220 COLLAPSED: 'collapsed', |
219 DEFAULT: 'default', | 221 DEFAULT: 'default', |
220 DISABLED: 'disabled', | 222 DISABLED: 'disabled', |
221 EDITABLE: 'editable', | 223 EDITABLE: 'editable', |
222 EXPANDED: 'expanded', | 224 EXPANDED: 'expanded', |
223 FOCUSABLE: 'focusable', | 225 FOCUSABLE: 'focusable', |
224 FOCUSED: 'focused', | 226 FOCUSED: 'focused', |
225 HASPOPUP: 'haspopup', | 227 HASPOPUP: 'haspopup', |
226 HORIZONTAL: 'horizontal', | 228 HORIZONTAL: 'horizontal', |
227 HOVERED: 'hovered', | 229 HOVERED: 'hovered', |
(...skipping 25 matching lines...) Expand all Loading... |
253 NODE_REMOVED: 'nodeRemoved', | 255 NODE_REMOVED: 'nodeRemoved', |
254 }; | 256 }; |
255 | 257 |
256 /** | 258 /** |
257 * @enum {string} | 259 * @enum {string} |
258 * @see https://developer.chrome.com/extensions/automation#type-NameFromType | 260 * @see https://developer.chrome.com/extensions/automation#type-NameFromType |
259 */ | 261 */ |
260 chrome.automation.NameFromType = { | 262 chrome.automation.NameFromType = { |
261 UNINITIALIZED: 'uninitialized', | 263 UNINITIALIZED: 'uninitialized', |
262 ATTRIBUTE: 'attribute', | 264 ATTRIBUTE: 'attribute', |
| 265 ATTRIBUTE_EXPLICITLY_EMPTY: 'attributeExplicitlyEmpty', |
263 CONTENTS: 'contents', | 266 CONTENTS: 'contents', |
264 PLACEHOLDER: 'placeholder', | 267 PLACEHOLDER: 'placeholder', |
265 RELATED_ELEMENT: 'relatedElement', | 268 RELATED_ELEMENT: 'relatedElement', |
266 VALUE: 'value', | 269 VALUE: 'value', |
267 }; | 270 }; |
268 | 271 |
269 /** | 272 /** |
270 * @typedef {{ | 273 * @typedef {{ |
271 * left: number, | 274 * left: number, |
272 * top: number, | 275 * top: number, |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 * @see https://developer.chrome.com/extensions/automation#type-TreeChangeObserv
erFilter | 363 * @see https://developer.chrome.com/extensions/automation#type-TreeChangeObserv
erFilter |
361 */ | 364 */ |
362 chrome.automation.TreeChangeObserverFilter = { | 365 chrome.automation.TreeChangeObserverFilter = { |
363 NO_TREE_CHANGES: 'noTreeChanges', | 366 NO_TREE_CHANGES: 'noTreeChanges', |
364 LIVE_REGION_TREE_CHANGES: 'liveRegionTreeChanges', | 367 LIVE_REGION_TREE_CHANGES: 'liveRegionTreeChanges', |
365 TEXT_MARKER_CHANGES: 'textMarkerChanges', | 368 TEXT_MARKER_CHANGES: 'textMarkerChanges', |
366 ALL_TREE_CHANGES: 'allTreeChanges', | 369 ALL_TREE_CHANGES: 'allTreeChanges', |
367 }; | 370 }; |
368 | 371 |
369 /** | 372 /** |
| 373 * @typedef {{ |
| 374 * id: number, |
| 375 * description: string |
| 376 * }} |
| 377 * @see https://developer.chrome.com/extensions/automation#type-CustomAction |
| 378 */ |
| 379 chrome.automation.CustomAction; |
| 380 |
| 381 /** |
370 * @constructor | 382 * @constructor |
371 * @private | 383 * @private |
372 * @see https://developer.chrome.com/extensions/automation#type-AutomationNode | 384 * @see https://developer.chrome.com/extensions/automation#type-AutomationNode |
373 */ | 385 */ |
374 chrome.automation.AutomationNode = function() {}; | 386 chrome.automation.AutomationNode = function() {}; |
375 | 387 |
376 /** | 388 /** |
377 * The root node of the tree containing this AutomationNode. | 389 * The root node of the tree containing this AutomationNode. |
378 * @type {(!chrome.automation.AutomationNode|undefined)} | 390 * @type {(!chrome.automation.AutomationNode|undefined)} |
379 * @see https://developer.chrome.com/extensions/automation#type-root | 391 * @see https://developer.chrome.com/extensions/automation#type-root |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
518 chrome.automation.AutomationNode.prototype.activeDescendant; | 530 chrome.automation.AutomationNode.prototype.activeDescendant; |
519 | 531 |
520 /** | 532 /** |
521 * The target of an in-page link. | 533 * The target of an in-page link. |
522 * @type {(!chrome.automation.AutomationNode|undefined)} | 534 * @type {(!chrome.automation.AutomationNode|undefined)} |
523 * @see https://developer.chrome.com/extensions/automation#type-inPageLinkTarget | 535 * @see https://developer.chrome.com/extensions/automation#type-inPageLinkTarget |
524 */ | 536 */ |
525 chrome.automation.AutomationNode.prototype.inPageLinkTarget; | 537 chrome.automation.AutomationNode.prototype.inPageLinkTarget; |
526 | 538 |
527 /** | 539 /** |
| 540 * An array of custom actions. |
| 541 * @type {(!Array<!chrome.automation.CustomAction>|undefined)} |
| 542 * @see https://developer.chrome.com/extensions/automation#type-customActions |
| 543 */ |
| 544 chrome.automation.AutomationNode.prototype.customActions; |
| 545 |
| 546 /** |
528 * The URL that this link will navigate to. | 547 * The URL that this link will navigate to. |
529 * @type {(string|undefined)} | 548 * @type {(string|undefined)} |
530 * @see https://developer.chrome.com/extensions/automation#type-url | 549 * @see https://developer.chrome.com/extensions/automation#type-url |
531 */ | 550 */ |
532 chrome.automation.AutomationNode.prototype.url; | 551 chrome.automation.AutomationNode.prototype.url; |
533 | 552 |
534 /** | 553 /** |
535 * The URL of this document. | 554 * The URL of this document. |
536 * @type {(string|undefined)} | 555 * @type {(string|undefined)} |
537 * @see https://developer.chrome.com/extensions/automation#type-docUrl | 556 * @see https://developer.chrome.com/extensions/automation#type-docUrl |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
912 chrome.automation.AutomationNode.prototype.imageDataUrl; | 931 chrome.automation.AutomationNode.prototype.imageDataUrl; |
913 | 932 |
914 /** | 933 /** |
915 * The language code for this subtree. | 934 * The language code for this subtree. |
916 * @type {(string|undefined)} | 935 * @type {(string|undefined)} |
917 * @see https://developer.chrome.com/extensions/automation#type-language | 936 * @see https://developer.chrome.com/extensions/automation#type-language |
918 */ | 937 */ |
919 chrome.automation.AutomationNode.prototype.language; | 938 chrome.automation.AutomationNode.prototype.language; |
920 | 939 |
921 /** | 940 /** |
922 * If a checkbox or toggle button is in the mixed state. | 941 * Tri-state describing checkbox or radio button: 'false' | 'true' | 'mixed' |
923 * @type {(boolean|undefined)} | 942 * @type {(string|undefined)} |
924 * @see https://developer.chrome.com/extensions/automation#type-buttonMixed | 943 * @see https://developer.chrome.com/extensions/automation#type-checked |
925 */ | 944 */ |
926 chrome.automation.AutomationNode.prototype.buttonMixed; | 945 chrome.automation.AutomationNode.prototype.checked; |
927 | 946 |
928 /** | 947 /** |
929 * The RGBA foreground color of this subtree, as an integer. | 948 * The RGBA foreground color of this subtree, as an integer. |
930 * @type {(number|undefined)} | 949 * @type {(number|undefined)} |
931 * @see https://developer.chrome.com/extensions/automation#type-color | 950 * @see https://developer.chrome.com/extensions/automation#type-color |
932 */ | 951 */ |
933 chrome.automation.AutomationNode.prototype.color; | 952 chrome.automation.AutomationNode.prototype.color; |
934 | 953 |
935 /** | 954 /** |
936 * The RGBA background color of this subtree, as an integer. | 955 * The RGBA background color of this subtree, as an integer. |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1035 */ | 1054 */ |
1036 chrome.automation.AutomationNode.prototype.hitTest = function(x, y, eventToFire)
{}; | 1055 chrome.automation.AutomationNode.prototype.hitTest = function(x, y, eventToFire)
{}; |
1037 | 1056 |
1038 /** | 1057 /** |
1039 * Scrolls this node to make it visible. | 1058 * Scrolls this node to make it visible. |
1040 * @see https://developer.chrome.com/extensions/automation#method-makeVisible | 1059 * @see https://developer.chrome.com/extensions/automation#method-makeVisible |
1041 */ | 1060 */ |
1042 chrome.automation.AutomationNode.prototype.makeVisible = function() {}; | 1061 chrome.automation.AutomationNode.prototype.makeVisible = function() {}; |
1043 | 1062 |
1044 /** | 1063 /** |
| 1064 * Performs custom action. |
| 1065 * @param {number} customActionId |
| 1066 * @see https://developer.chrome.com/extensions/automation#method-performCustomA
ction |
| 1067 */ |
| 1068 chrome.automation.AutomationNode.prototype.performCustomAction = function(custom
ActionId) {}; |
| 1069 |
| 1070 /** |
1045 * Sets selection within a text field. | 1071 * Sets selection within a text field. |
1046 * @param {number} startIndex | 1072 * @param {number} startIndex |
1047 * @param {number} endIndex | 1073 * @param {number} endIndex |
1048 * @see https://developer.chrome.com/extensions/automation#method-setSelection | 1074 * @see https://developer.chrome.com/extensions/automation#method-setSelection |
1049 */ | 1075 */ |
1050 chrome.automation.AutomationNode.prototype.setSelection = function(startIndex, e
ndIndex) {}; | 1076 chrome.automation.AutomationNode.prototype.setSelection = function(startIndex, e
ndIndex) {}; |
1051 | 1077 |
1052 /** | 1078 /** |
1053 * Clears focus and sets this node as the starting point for the next time the | 1079 * Clears focus and sets this node as the starting point for the next time the |
1054 * user presses Tab or Shift+Tab. | 1080 * user presses Tab or Shift+Tab. |
(...skipping 153 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 | 1234 * 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 | 1235 * 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 | 1236 * 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 | 1237 * the keyboard. For nodes with the role staticText, the offset gives the |
1212 * character offset within the value where the selection starts or ends, | 1238 * character offset within the value where the selection starts or ends, |
1213 * respectively. | 1239 * respectively. |
1214 * @param {!chrome.automation.SetDocumentSelectionParams} params | 1240 * @param {!chrome.automation.SetDocumentSelectionParams} params |
1215 * @see https://developer.chrome.com/extensions/automation#method-setDocumentSel
ection | 1241 * @see https://developer.chrome.com/extensions/automation#method-setDocumentSel
ection |
1216 */ | 1242 */ |
1217 chrome.automation.setDocumentSelection = function(params) {}; | 1243 chrome.automation.setDocumentSelection = function(params) {}; |
OLD | NEW |