OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 hand written due to limitations in the extension system and the |
6 // tools/json_schema_compiler/compiler.py -g externs | 6 // idl parser. |
7 // chrome/common/extensions/api/automation.idl | |
8 // | |
9 // Further edits were applied by hand due to bugs / limitations in | |
10 // json_schema_compiler. | |
11 // | |
12 // See https://chromium.googlesource.com/chromium/src/+/master/docs/closure_comp
ilation.md | |
13 | |
14 /** @fileoverview Externs generated from namespace: automation */ | |
15 | |
16 /** | |
17 * @const | |
18 */ | |
19 chrome.automation = {}; | |
20 | 7 |
21 /** | 8 /** |
22 * @enum {string} | 9 * @enum {string} |
23 */ | 10 */ |
24 chrome.automation.EventType = { | 11 chrome.automation.EventType = { |
25 activedescendantchanged: '', | 12 activedescendantchanged: '', |
26 alert: '', | 13 alert: '', |
27 ariaAttributeChanged: '', | 14 ariaAttributeChanged: '', |
28 autocorrectionOccured: '', | 15 autocorrectionOccured: '', |
29 blur: '', | 16 blur: '', |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 chrome.automation.DescriptionFromType = { | 234 chrome.automation.DescriptionFromType = { |
248 0: '', | 235 0: '', |
249 1: 'uninitialized', | 236 1: 'uninitialized', |
250 2: 'attribute', | 237 2: 'attribute', |
251 3: 'contents', | 238 3: 'contents', |
252 4: 'placeholder', | 239 4: 'placeholder', |
253 5: 'relatedElement' | 240 5: 'relatedElement' |
254 }; | 241 }; |
255 | 242 |
256 /** | 243 /** |
257 * @enum {string} | |
258 */ | |
259 chrome.automation.TreeChangeType = { | |
260 nodeCreated: 'nodeCreated', | |
261 subtreeCreated: 'subtreeCreated', | |
262 nodeChanged: 'nodeChanged', | |
263 nodeRemoved: 'nodeRemoved', | |
264 }; | |
265 | |
266 /** | |
267 * @typedef {{ | |
268 * left: number, | |
269 * top: number, | |
270 * width: number, | |
271 * height: number | |
272 * }} | |
273 */ | |
274 chrome.automation.Rect; | |
275 | |
276 /** | |
277 * @typedef {{ | |
278 * role: (!chrome.automation.RoleType|undefined), | |
279 * state: (Object|undefined), | |
280 * attributes: (Object|undefined) | |
281 * }} | |
282 */ | |
283 chrome.automation.FindParams; | |
284 | |
285 /** | |
286 * @constructor | |
287 * @param {chrome.automation.EventType} type | |
288 * @param {chrome.automation.AutomationNode} node | |
289 * @param {string} eventFrom | |
290 */ | |
291 chrome.automation.AutomationEvent = function(type, node, eventFrom) {}; | |
292 | |
293 /** | |
294 * @type {!chrome.automation.AutomationNode} | 244 * @type {!chrome.automation.AutomationNode} |
295 */ | 245 */ |
296 chrome.automation.AutomationEvent.prototype.target; | 246 chrome.automation.AutomationEvent.prototype.target; |
297 | 247 |
298 /** | 248 /** |
299 * @type {!chrome.automation.EventType} | 249 * @type {!chrome.automation.EventType} |
300 */ | 250 */ |
301 chrome.automation.AutomationEvent.prototype.type; | 251 chrome.automation.AutomationEvent.prototype.type; |
302 | 252 |
303 /** | 253 /** |
304 * @type {string} | 254 * @type {string} |
305 */ | 255 */ |
306 chrome.automation.AutomationEvent.prototype.eventFrom; | 256 chrome.automation.AutomationEvent.prototype.eventFrom; |
307 | 257 |
308 /** | 258 /** |
309 * @type {number} | 259 * @type {number} |
310 */ | 260 */ |
311 chrome.automation.AutomationEvent.prototype.mouseX; | 261 chrome.automation.AutomationEvent.prototype.mouseX; |
312 | 262 |
313 /** | 263 /** |
314 * @type {number} | 264 * @type {number} |
315 */ | 265 */ |
316 chrome.automation.AutomationEvent.prototype.mouseY; | 266 chrome.automation.AutomationEvent.prototype.mouseY; |
317 | 267 |
318 chrome.automation.AutomationEvent.prototype.stopPropagation = function() {}; | 268 chrome.automation.AutomationEvent.prototype.stopPropagation = function() {}; |
319 | 269 |
320 /** | |
321 * @typedef {{ | |
322 * target: chrome.automation.AutomationNode, | |
323 * type: !chrome.automation.TreeChangeType | |
324 * }} | |
325 */ | |
326 chrome.automation.TreeChange; | |
327 | |
328 /** | |
329 * @constructor | |
330 */ | |
331 chrome.automation.AutomationNode = function() {}; | |
332 | |
333 | |
334 /** | |
335 * @param {number} tabId | |
336 * @param {function(chrome.automation.AutomationNode):void} callback | |
337 */ | |
338 chrome.automation.getTree = function(tabId, callback) {}; | |
339 | |
340 /** @param {function(!chrome.automation.AutomationNode):void} callback */ | |
341 chrome.automation.getDesktop = function(callback) {}; | |
342 | |
343 /** @param {function(!chrome.automation.AutomationNode):void} callback */ | |
344 chrome.automation.getFocus = function(callback) {}; | |
345 | |
346 /** | |
347 * @param {string} filter | |
348 * @param {function(chrome.automation.TreeChange) : void} | |
349 * observer | |
350 */ | |
351 chrome.automation.addTreeChangeObserver = function(filter, observer) {}; | |
352 | |
353 /** | |
354 * @param {function(chrome.automation.TreeChange) : void} observer | |
355 */ | |
356 chrome.automation.removeTreeChangeObserver = function(observer) {}; | |
357 | |
358 // | |
359 // End auto generated externs; do not edit. | |
360 // | |
361 | |
362 | |
363 | 270 |
364 /** | 271 /** |
365 * @type {chrome.automation.RoleType} | 272 * @type {chrome.automation.RoleType} |
366 */ | 273 */ |
367 chrome.automation.AutomationNode.prototype.role; | 274 chrome.automation.AutomationNode.prototype.role; |
368 | 275 |
369 | 276 |
370 /** | 277 /** |
371 * @type {!Object<chrome.automation.StateType, boolean>} | 278 * @type {!Object<chrome.automation.StateType, boolean>} |
372 */ | 279 */ |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
598 * @type {string} | 505 * @type {string} |
599 */ | 506 */ |
600 chrome.automation.AutomationNode.prototype.inputType; | 507 chrome.automation.AutomationNode.prototype.inputType; |
601 | 508 |
602 /** | 509 /** |
603 * @type {(chrome.automation.AutomationNode|undefined)} | 510 * @type {(chrome.automation.AutomationNode|undefined)} |
604 */ | 511 */ |
605 chrome.automation.AutomationNode.prototype.anchorObject; | 512 chrome.automation.AutomationNode.prototype.anchorObject; |
606 | 513 |
607 /** | 514 /** |
608 * @param {{anchorObject: !chrome.automation.AutomationNode, | |
609 * anchorOffset: number, | |
610 * focusObject: !chrome.automation.AutomationNode, | |
611 * focusOffset: number}} selectionParams | |
612 */ | |
613 chrome.automation.setDocumentSelection = function(selectionParams) {}; | |
614 | |
615 /** | |
616 * @type {(number|undefined)} | 515 * @type {(number|undefined)} |
617 */ | 516 */ |
618 chrome.automation.anchorOffset; | 517 chrome.automation.anchorOffset; |
619 | 518 |
620 /** | 519 /** |
621 * @type {(chrome.automation.AutomationNode|undefined)} | 520 * @type {(chrome.automation.AutomationNode|undefined)} |
622 */ | 521 */ |
623 chrome.automation.AutomationNode.prototype.focusObject; | 522 chrome.automation.AutomationNode.prototype.focusObject; |
624 | 523 |
625 /** | 524 /** |
626 * @type {(Array<number>|undefined)} | |
627 */ | |
628 chrome.automation.AutomationNode.prototype.lineBreaks; | |
629 | |
630 /** | |
631 * @type {(number|undefined)} | |
632 */ | |
633 chrome.automation.focusOffset; | |
634 | |
635 /** | |
636 * @type {(chrome.automation.AutomationNode|undefined)} | 525 * @type {(chrome.automation.AutomationNode|undefined)} |
637 */ | 526 */ |
638 chrome.automation.AutomationNode.prototype.activeDescendant; | 527 chrome.automation.AutomationNode.prototype.activeDescendant; |
639 | 528 |
640 /** @type {number} */ | 529 /** @type {number} */ |
641 chrome.automation.AutomationNode.prototype.tableCellColumnIndex; | 530 chrome.automation.AutomationNode.prototype.tableCellColumnIndex; |
642 | 531 |
643 /** @type {number} */ | 532 /** @type {number} */ |
644 chrome.automation.AutomationNode.prototype.tableCellRowIndex; | 533 chrome.automation.AutomationNode.prototype.tableCellRowIndex; |
645 | 534 |
(...skipping 17 matching lines...) Expand all Loading... |
663 chrome.automation.AutomationNode.prototype.ariaReadonly; | 552 chrome.automation.AutomationNode.prototype.ariaReadonly; |
664 | 553 |
665 /** @type {chrome.automation.AutomationNode} */ | 554 /** @type {chrome.automation.AutomationNode} */ |
666 chrome.automation.AutomationNode.prototype.nextOnLine; | 555 chrome.automation.AutomationNode.prototype.nextOnLine; |
667 /** @type {chrome.automation.AutomationNode} */ | 556 /** @type {chrome.automation.AutomationNode} */ |
668 chrome.automation.AutomationNode.prototype.previousOnLine; | 557 chrome.automation.AutomationNode.prototype.previousOnLine; |
669 | 558 |
670 /** @type {Object<string, string>} */ | 559 /** @type {Object<string, string>} */ |
671 chrome.automation.AutomationNode.prototype.htmlAttributes; | 560 chrome.automation.AutomationNode.prototype.htmlAttributes; |
672 | 561 |
673 /** | 562 /** |
674 * @extends {chrome.automation.AutomationNode} | 563 * @extends {chrome.automation.AutomationNode} |
675 * @constructor | 564 * @constructor |
676 */ | 565 */ |
677 chrome.automation.AutomationRootNode = function() {}; | 566 chrome.automation.AutomationRootNode = function() {}; |
678 | 567 |
679 /** | 568 /** |
680 * @type {chrome.automation.AutomationNode} | 569 * @type {chrome.automation.AutomationNode} |
681 */ | 570 */ |
682 chrome.automation.AutomationRootNode.prototype.anchorObject; | 571 chrome.automation.AutomationRootNode.prototype.anchorObject; |
683 | 572 |
684 /** | 573 /** |
685 * @type {number} | 574 * @type {number} |
686 */ | 575 */ |
687 chrome.automation.AutomationRootNode.prototype.anchorOffset; | 576 chrome.automation.AutomationRootNode.prototype.anchorOffset; |
688 | 577 |
689 /** | 578 /** |
690 * @type {chrome.automation.AutomationNode} | 579 * @type {chrome.automation.AutomationNode} |
691 */ | 580 */ |
692 chrome.automation.AutomationRootNode.prototype.focusObject; | 581 chrome.automation.AutomationRootNode.prototype.focusObject; |
693 | 582 |
694 /** | 583 /** |
695 * @type {number} | 584 * @type {number} |
696 */ | 585 */ |
697 chrome.automation.AutomationRootNode.prototype.focusOffset; | 586 chrome.automation.AutomationRootNode.prototype.focusOffset; |
OLD | NEW |