cygprofile: increase timeouts to allow showing web contents
[chromium-blink-merge.git] / chrome / browser / resources / chromeos / chromevox / common / chrome_extension_externs.js
blobf4265d9b3710cc31cf2b0068c2c8471959a7d34a
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
6 /**
7 * @fileoverview Definitions for the Chromium extensions API used by ChromeVox.
9 * @externs
13 // TODO: Move these to //third_party/closure_compiler/externs.
15 // Begin auto generated externs; do not edit.
16 // The following was generated from:
18 // python tools/json_schema_compiler/compiler.py
19 // -g externs
20 // chrome/common/extensions/api/automation.idl
22 /**
23 * @const
25 chrome.automation = {};
27 /**
28 * @enum {string}
30 chrome.automation.EventType = {
31 activedescendantchanged: 'activedescendantchanged',
32 alert: 'alert',
33 ariaAttributeChanged: 'ariaAttributeChanged',
34 autocorrectionOccured: 'autocorrectionOccured',
35 blur: 'blur',
36 checkedStateChanged: 'checkedStateChanged',
37 childrenChanged: 'childrenChanged',
38 focus: 'focus',
39 hide: 'hide',
40 hover: 'hover',
41 invalidStatusChanged: 'invalidStatusChanged',
42 layoutComplete: 'layoutComplete',
43 liveRegionChanged: 'liveRegionChanged',
44 loadComplete: 'loadComplete',
45 locationChanged: 'locationChanged',
46 menuEnd: 'menuEnd',
47 menuListItemSelected: 'menuListItemSelected',
48 menuListValueChanged: 'menuListValueChanged',
49 menuPopupEnd: 'menuPopupEnd',
50 menuPopupStart: 'menuPopupStart',
51 menuStart: 'menuStart',
52 rowCollapsed: 'rowCollapsed',
53 rowCountChanged: 'rowCountChanged',
54 rowExpanded: 'rowExpanded',
55 scrollPositionChanged: 'scrollPositionChanged',
56 scrolledToAnchor: 'scrolledToAnchor',
57 selectedChildrenChanged: 'selectedChildrenChanged',
58 selection: 'selection',
59 selectionAdd: 'selectionAdd',
60 selectionRemove: 'selectionRemove',
61 show: 'show',
62 textChanged: 'textChanged',
63 textSelectionChanged: 'textSelectionChanged',
64 treeChanged: 'treeChanged',
65 valueChanged: 'valueChanged',
68 /**
69 * @enum {string}
71 chrome.automation.RoleType = {
72 alertDialog: 'alertDialog',
73 alert: 'alert',
74 annotation: 'annotation',
75 application: 'application',
76 article: 'article',
77 banner: 'banner',
78 blockquote: 'blockquote',
79 busyIndicator: 'busyIndicator',
80 button: 'button',
81 buttonDropDown: 'buttonDropDown',
82 canvas: 'canvas',
83 caption: 'caption',
84 cell: 'cell',
85 checkBox: 'checkBox',
86 client: 'client',
87 colorWell: 'colorWell',
88 columnHeader: 'columnHeader',
89 column: 'column',
90 comboBox: 'comboBox',
91 complementary: 'complementary',
92 contentInfo: 'contentInfo',
93 date: 'date',
94 dateTime: 'dateTime',
95 definition: 'definition',
96 descriptionListDetail: 'descriptionListDetail',
97 descriptionList: 'descriptionList',
98 descriptionListTerm: 'descriptionListTerm',
99 desktop: 'desktop',
100 details: 'details',
101 dialog: 'dialog',
102 directory: 'directory',
103 disclosureTriangle: 'disclosureTriangle',
104 div: 'div',
105 document: 'document',
106 embeddedObject: 'embeddedObject',
107 figcaption: 'figcaption',
108 figure: 'figure',
109 footer: 'footer',
110 form: 'form',
111 grid: 'grid',
112 group: 'group',
113 heading: 'heading',
114 iframe: 'iframe',
115 iframePresentational: 'iframePresentational',
116 ignored: 'ignored',
117 imageMapLink: 'imageMapLink',
118 imageMap: 'imageMap',
119 image: 'image',
120 inlineTextBox: 'inlineTextBox',
121 labelText: 'labelText',
122 legend: 'legend',
123 lineBreak: 'lineBreak',
124 link: 'link',
125 listBoxOption: 'listBoxOption',
126 listBox: 'listBox',
127 listItem: 'listItem',
128 listMarker: 'listMarker',
129 list: 'list',
130 locationBar: 'locationBar',
131 log: 'log',
132 main: 'main',
133 marquee: 'marquee',
134 math: 'math',
135 menuBar: 'menuBar',
136 menuButton: 'menuButton',
137 menuItem: 'menuItem',
138 menuItemCheckBox: 'menuItemCheckBox',
139 menuItemRadio: 'menuItemRadio',
140 menuListOption: 'menuListOption',
141 menuListPopup: 'menuListPopup',
142 menu: 'menu',
143 meter: 'meter',
144 navigation: 'navigation',
145 note: 'note',
146 outline: 'outline',
147 pane: 'pane',
148 paragraph: 'paragraph',
149 popUpButton: 'popUpButton',
150 pre: 'pre',
151 presentational: 'presentational',
152 progressIndicator: 'progressIndicator',
153 radioButton: 'radioButton',
154 radioGroup: 'radioGroup',
155 region: 'region',
156 rootWebArea: 'rootWebArea',
157 rowHeader: 'rowHeader',
158 row: 'row',
159 ruby: 'ruby',
160 ruler: 'ruler',
161 svgRoot: 'svgRoot',
162 scrollArea: 'scrollArea',
163 scrollBar: 'scrollBar',
164 seamlessWebArea: 'seamlessWebArea',
165 search: 'search',
166 searchBox: 'searchBox',
167 slider: 'slider',
168 sliderThumb: 'sliderThumb',
169 spinButtonPart: 'spinButtonPart',
170 spinButton: 'spinButton',
171 splitter: 'splitter',
172 staticText: 'staticText',
173 status: 'status',
174 switch: 'switch',
175 tabGroup: 'tabGroup',
176 tabList: 'tabList',
177 tabPanel: 'tabPanel',
178 tab: 'tab',
179 tableHeaderContainer: 'tableHeaderContainer',
180 table: 'table',
181 textField: 'textField',
182 time: 'time',
183 timer: 'timer',
184 titleBar: 'titleBar',
185 toggleButton: 'toggleButton',
186 toolbar: 'toolbar',
187 treeGrid: 'treeGrid',
188 treeItem: 'treeItem',
189 tree: 'tree',
190 unknown: 'unknown',
191 tooltip: 'tooltip',
192 webArea: 'webArea',
193 webView: 'webView',
194 window: 'window',
198 * @enum {string}
200 chrome.automation.StateType = {
201 busy: 'busy',
202 checked: 'checked',
203 collapsed: 'collapsed',
204 default: 'default',
205 disabled: 'disabled',
206 editable: 'editable',
207 enabled: 'enabled',
208 expanded: 'expanded',
209 focusable: 'focusable',
210 focused: 'focused',
211 haspopup: 'haspopup',
212 horizontal: 'horizontal',
213 hovered: 'hovered',
214 indeterminate: 'indeterminate',
215 invisible: 'invisible',
216 linked: 'linked',
217 multiselectable: 'multiselectable',
218 offscreen: 'offscreen',
219 pressed: 'pressed',
220 protected: 'protected',
221 readOnly: 'readOnly',
222 required: 'required',
223 selectable: 'selectable',
224 selected: 'selected',
225 vertical: 'vertical',
226 visited: 'visited',
230 * @enum {string}
232 chrome.automation.TreeChangeType = {
233 nodeCreated: 'nodeCreated',
234 subtreeCreated: 'subtreeCreated',
235 nodeChanged: 'nodeChanged',
236 nodeRemoved: 'nodeRemoved',
240 * @typedef {{
241 * left: number,
242 * top: number,
243 * width: number,
244 * height: number
245 * }}
247 chrome.automation.Rect;
250 * @typedef {{
251 * role: (!chrome.automation.RoleType|undefined),
252 * state: (Object|undefined),
253 * attributes: (Object|undefined)
254 * }}
256 chrome.automation.FindParams;
259 * @constructor
261 chrome.automation.AutomationEvent = function() {};
264 * @typedef {{
265 * target: chrome.automation.AutomationNode,
266 * type: !chrome.automation.TreeChangeType
267 * }}
269 chrome.automation.TreeChange;
272 * @constructor
274 chrome.automation.AutomationNode = function() {};
278 * Get the automation tree for the tab with the given tabId, or the current tab
279 * if no tabID is given, enabling automation if necessary. Returns a tree with a
280 * placeholder root node; listen for the "loadComplete" event to get a
281 * notification that the tree has fully loaded (the previous root node reference
282 * will stop working at or before this point).
283 * @param {number} tabId
284 * @param {function(chrome.automation.AutomationNode):void} callback
285 * Called when the <code>AutomationNode</code> for the page is available.
287 chrome.automation.getTree = function(tabId, callback) {};
290 * Get the automation tree for the whole desktop which consists of all on screen
291 * views. Note this API is currently only supported on Chrome OS.
292 * @param {function(chrome.automation.AutomationNode):void} callback
293 * Called when the <code>AutomationNode</code> for the page is available.
295 chrome.automation.getDesktop = function(callback) {};
298 * Add a tree change observer. Tree change observers are static/global,
299 * they listen to tree changes across all trees.
300 * @param {function(chrome.automation.TreeChange):void} observer
301 * A listener for tree changes on the <code>AutomationNode</code> tree.
303 chrome.automation.addTreeChangeObserver = function(observer) {};
306 * Remove a tree change observer.
307 * @param {function(chrome.automation.TreeChange):void} observer
308 * A listener for tree changes on the <code>AutomationNode</code> tree.
310 chrome.automation.removeTreeChangeObserver = function(observer) {};
313 // End auto generated externs; do not edit.
319 * @type {chrome.automation.RoleType}
321 chrome.automation.AutomationNode.prototype.role;
325 * @type {!Object<chrome.automation.StateType, boolean>}
327 chrome.automation.AutomationNode.prototype.state;
331 * @type {number}
333 chrome.automation.AutomationNode.prototype.indexInParent;
337 * @type {string}
339 chrome.automation.AutomationNode.prototype.name;
342 * @type {string}
344 chrome.automation.AutomationNode.prototype.description;
348 * @type {string}
350 chrome.automation.AutomationNode.prototype.url;
354 * @type {string}
356 chrome.automation.AutomationNode.prototype.docUrl;
360 * @type {string}
362 chrome.automation.AutomationNode.prototype.value;
366 * @type {number}
368 chrome.automation.AutomationNode.prototype.textSelStart;
372 * @type {number}
374 chrome.automation.AutomationNode.prototype.textSelEnd;
378 * @type {Array<number>}
380 chrome.automation.AutomationNode.prototype.wordStarts;
384 * @type {Array<number>}
386 chrome.automation.AutomationNode.prototype.wordEnds;
390 * @type {!chrome.automation.AutomationNode}
392 chrome.automation.AutomationNode.prototype.root;
396 * @type {chrome.automation.AutomationNode}
398 chrome.automation.AutomationNode.prototype.firstChild;
402 * @type {chrome.automation.AutomationNode}
404 chrome.automation.AutomationNode.prototype.lastChild;
408 * @type {chrome.automation.AutomationNode}
410 chrome.automation.AutomationNode.prototype.nextSibling;
414 * @type {chrome.automation.AutomationNode}
416 chrome.automation.AutomationNode.prototype.previousSibling;
420 * @type {chrome.automation.AutomationNode}
422 chrome.automation.AutomationNode.prototype.parent;
426 * @type {!Array<chrome.automation.AutomationNode>}
428 chrome.automation.AutomationNode.prototype.children;
432 * @type {{top: number, left: number, height: number, width: number}}
434 chrome.automation.AutomationNode.prototype.location;
438 * @param {chrome.automation.EventType} eventType
439 * @param {function(chrome.automation.AutomationNode) : void} callback
440 * @param {boolean} capture
442 chrome.automation.AutomationNode.prototype.addEventListener =
443 function(eventType, callback, capture) {};
447 * @param {chrome.automation.EventType} eventType
448 * @param {function(chrome.automation.AutomationNode) : void} callback
449 * @param {boolean} capture
451 chrome.automation.AutomationNode.prototype.removeEventListener =
452 function(eventType, callback, capture) {};
456 * @type {chrome.automation.AutomationNode}
458 chrome.automation.TreeChange.prototype.target;
462 * @type {chrome.automation.TreeChangeType}
464 chrome.automation.TreeChange.prototype.type;
468 * @param {function(chrome.automation.TreeChange) : void}
469 * callback
471 chrome.automation.AutomationNode.prototype.addTreeChangeObserver =
472 function(callback) {};
476 * @param {function(chrome.automation.TreeChange) : void}
477 * callback
479 chrome.automation.AutomationNode.prototype.removeTreeChangeObserver =
480 function(callback) {};
483 chrome.automation.AutomationNode.prototype.doDefault = function() {};
486 chrome.automation.AutomationNode.prototype.focus = function() {};
489 chrome.automation.AutomationNode.prototype.showContextMenu = function() {};
493 * @param {number} start
494 * @param {number} end
496 chrome.automation.AutomationNode.prototype.setSelection =
497 function(start, end) {};
500 /** @type {string} */
501 chrome.automation.AutomationNode.prototype.containerLiveStatus;
503 /** @type {string} */
504 chrome.automation.AutomationNode.prototype.containerLiveRelevant;
506 /** @type {boolean} */
507 chrome.automation.AutomationNode.prototype.containerLiveAtomic;
509 /** @type {boolean} */
510 chrome.automation.AutomationNode.prototype.containerLiveBusy;
514 * @param {Object} findParams
516 chrome.automation.AutomationNode.prototype.find = function(findParams) {};