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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 * @see https://developer.chrome.com/extensions/automation#type-TreeChangeObserv
erFilter | 360 * @see https://developer.chrome.com/extensions/automation#type-TreeChangeObserv
erFilter |
361 */ | 361 */ |
362 chrome.automation.TreeChangeObserverFilter = { | 362 chrome.automation.TreeChangeObserverFilter = { |
363 NO_TREE_CHANGES: 'noTreeChanges', | 363 NO_TREE_CHANGES: 'noTreeChanges', |
364 LIVE_REGION_TREE_CHANGES: 'liveRegionTreeChanges', | 364 LIVE_REGION_TREE_CHANGES: 'liveRegionTreeChanges', |
365 TEXT_MARKER_CHANGES: 'textMarkerChanges', | 365 TEXT_MARKER_CHANGES: 'textMarkerChanges', |
366 ALL_TREE_CHANGES: 'allTreeChanges', | 366 ALL_TREE_CHANGES: 'allTreeChanges', |
367 }; | 367 }; |
368 | 368 |
369 /** | 369 /** |
| 370 * @typedef {{ |
| 371 * id: number, |
| 372 * description: string |
| 373 * }} |
| 374 * @see https://developer.chrome.com/extensions/automation#type-CustomAction |
| 375 */ |
| 376 chrome.automation.CustomAction; |
| 377 |
| 378 /** |
370 * @constructor | 379 * @constructor |
371 * @private | 380 * @private |
372 * @see https://developer.chrome.com/extensions/automation#type-AutomationNode | 381 * @see https://developer.chrome.com/extensions/automation#type-AutomationNode |
373 */ | 382 */ |
374 chrome.automation.AutomationNode = function() {}; | 383 chrome.automation.AutomationNode = function() {}; |
375 | 384 |
376 /** | 385 /** |
377 * The root node of the tree containing this AutomationNode. | 386 * The root node of the tree containing this AutomationNode. |
378 * @type {(!chrome.automation.AutomationNode|undefined)} | 387 * @type {(!chrome.automation.AutomationNode|undefined)} |
379 * @see https://developer.chrome.com/extensions/automation#type-root | 388 * @see https://developer.chrome.com/extensions/automation#type-root |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 chrome.automation.AutomationNode.prototype.activeDescendant; | 534 chrome.automation.AutomationNode.prototype.activeDescendant; |
526 | 535 |
527 /** | 536 /** |
528 * The target of an in-page link. | 537 * The target of an in-page link. |
529 * @type {(!chrome.automation.AutomationNode|undefined)} | 538 * @type {(!chrome.automation.AutomationNode|undefined)} |
530 * @see https://developer.chrome.com/extensions/automation#type-inPageLinkTarget | 539 * @see https://developer.chrome.com/extensions/automation#type-inPageLinkTarget |
531 */ | 540 */ |
532 chrome.automation.AutomationNode.prototype.inPageLinkTarget; | 541 chrome.automation.AutomationNode.prototype.inPageLinkTarget; |
533 | 542 |
534 /** | 543 /** |
| 544 * An array of custom actions. |
| 545 * @type {(!Array<!chrome.automation.CustomAction>|undefined)} |
| 546 * @see https://developer.chrome.com/extensions/automation#type-customActions |
| 547 */ |
| 548 chrome.automation.AutomationNode.prototype.customActions; |
| 549 |
| 550 /** |
535 * The URL that this link will navigate to. | 551 * The URL that this link will navigate to. |
536 * @type {(string|undefined)} | 552 * @type {(string|undefined)} |
537 * @see https://developer.chrome.com/extensions/automation#type-url | 553 * @see https://developer.chrome.com/extensions/automation#type-url |
538 */ | 554 */ |
539 chrome.automation.AutomationNode.prototype.url; | 555 chrome.automation.AutomationNode.prototype.url; |
540 | 556 |
541 /** | 557 /** |
542 * The URL of this document. | 558 * The URL of this document. |
543 * @type {(string|undefined)} | 559 * @type {(string|undefined)} |
544 * @see https://developer.chrome.com/extensions/automation#type-docUrl | 560 * @see https://developer.chrome.com/extensions/automation#type-docUrl |
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1070 */ | 1086 */ |
1071 chrome.automation.AutomationNode.prototype.hitTest = function(x, y, eventToFire)
{}; | 1087 chrome.automation.AutomationNode.prototype.hitTest = function(x, y, eventToFire)
{}; |
1072 | 1088 |
1073 /** | 1089 /** |
1074 * Scrolls this node to make it visible. | 1090 * Scrolls this node to make it visible. |
1075 * @see https://developer.chrome.com/extensions/automation#method-makeVisible | 1091 * @see https://developer.chrome.com/extensions/automation#method-makeVisible |
1076 */ | 1092 */ |
1077 chrome.automation.AutomationNode.prototype.makeVisible = function() {}; | 1093 chrome.automation.AutomationNode.prototype.makeVisible = function() {}; |
1078 | 1094 |
1079 /** | 1095 /** |
| 1096 * Performs custom action. |
| 1097 * @param {number} customActionId |
| 1098 * @see https://developer.chrome.com/extensions/automation#method-performCustomA
ction |
| 1099 */ |
| 1100 chrome.automation.AutomationNode.prototype.performCustomAction = function(custom
ActionId) {}; |
| 1101 |
| 1102 /** |
1080 * Sets selection within a text field. | 1103 * Sets selection within a text field. |
1081 * @param {number} startIndex | 1104 * @param {number} startIndex |
1082 * @param {number} endIndex | 1105 * @param {number} endIndex |
1083 * @see https://developer.chrome.com/extensions/automation#method-setSelection | 1106 * @see https://developer.chrome.com/extensions/automation#method-setSelection |
1084 */ | 1107 */ |
1085 chrome.automation.AutomationNode.prototype.setSelection = function(startIndex, e
ndIndex) {}; | 1108 chrome.automation.AutomationNode.prototype.setSelection = function(startIndex, e
ndIndex) {}; |
1086 | 1109 |
1087 /** | 1110 /** |
1088 * Clears focus and sets this node as the starting point for the next time the | 1111 * Clears focus and sets this node as the starting point for the next time the |
1089 * user presses Tab or Shift+Tab. | 1112 * user presses Tab or Shift+Tab. |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1243 * tree between the two node/offset pairs gets included in the selection. The | 1266 * tree between the two node/offset pairs gets included in the selection. The |
1244 * anchor is where the user started the selection, while the focus is the point | 1267 * anchor is where the user started the selection, while the focus is the point |
1245 * at which the selection gets extended e.g. when dragging with a mouse or using | 1268 * at which the selection gets extended e.g. when dragging with a mouse or using |
1246 * the keyboard. For nodes with the role staticText, the offset gives the | 1269 * the keyboard. For nodes with the role staticText, the offset gives the |
1247 * character offset within the value where the selection starts or ends, | 1270 * character offset within the value where the selection starts or ends, |
1248 * respectively. | 1271 * respectively. |
1249 * @param {!chrome.automation.SetDocumentSelectionParams} params | 1272 * @param {!chrome.automation.SetDocumentSelectionParams} params |
1250 * @see https://developer.chrome.com/extensions/automation#method-setDocumentSel
ection | 1273 * @see https://developer.chrome.com/extensions/automation#method-setDocumentSel
ection |
1251 */ | 1274 */ |
1252 chrome.automation.setDocumentSelection = function(params) {}; | 1275 chrome.automation.setDocumentSelection = function(params) {}; |
OLD | NEW |