Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Side by Side Diff: third_party/closure_compiler/externs/automation.js

Issue 2873373005: Add custom action support (Closed)
Patch Set: Removed MinVersion from struct. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 {{
Devlin 2017/06/14 18:23:10 were these just generated through the script?
yawano 2017/06/15 10:43:21 Yes, this is generated by tools/json_schema_compil
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
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 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
1042 */ 1058 */
1043 chrome.automation.AutomationNode.prototype.hitTest = function(x, y, eventToFire) {}; 1059 chrome.automation.AutomationNode.prototype.hitTest = function(x, y, eventToFire) {};
1044 1060
1045 /** 1061 /**
1046 * Scrolls this node to make it visible. 1062 * Scrolls this node to make it visible.
1047 * @see https://developer.chrome.com/extensions/automation#method-makeVisible 1063 * @see https://developer.chrome.com/extensions/automation#method-makeVisible
1048 */ 1064 */
1049 chrome.automation.AutomationNode.prototype.makeVisible = function() {}; 1065 chrome.automation.AutomationNode.prototype.makeVisible = function() {};
1050 1066
1051 /** 1067 /**
1068 * Performs custom action.
1069 * @param {number} customActionId
1070 * @see https://developer.chrome.com/extensions/automation#method-performCustomA ction
1071 */
1072 chrome.automation.AutomationNode.prototype.performCustomAction = function(custom ActionId) {};
1073
1074 /**
1052 * Sets selection within a text field. 1075 * Sets selection within a text field.
1053 * @param {number} startIndex 1076 * @param {number} startIndex
1054 * @param {number} endIndex 1077 * @param {number} endIndex
1055 * @see https://developer.chrome.com/extensions/automation#method-setSelection 1078 * @see https://developer.chrome.com/extensions/automation#method-setSelection
1056 */ 1079 */
1057 chrome.automation.AutomationNode.prototype.setSelection = function(startIndex, e ndIndex) {}; 1080 chrome.automation.AutomationNode.prototype.setSelection = function(startIndex, e ndIndex) {};
1058 1081
1059 /** 1082 /**
1060 * Clears focus and sets this node as the starting point for the next time the 1083 * Clears focus and sets this node as the starting point for the next time the
1061 * user presses Tab or Shift+Tab. 1084 * user presses Tab or Shift+Tab.
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
1215 * tree between the two node/offset pairs gets included in the selection. The 1238 * tree between the two node/offset pairs gets included in the selection. The
1216 * anchor is where the user started the selection, while the focus is the point 1239 * anchor is where the user started the selection, while the focus is the point
1217 * at which the selection gets extended e.g. when dragging with a mouse or using 1240 * at which the selection gets extended e.g. when dragging with a mouse or using
1218 * the keyboard. For nodes with the role staticText, the offset gives the 1241 * the keyboard. For nodes with the role staticText, the offset gives the
1219 * character offset within the value where the selection starts or ends, 1242 * character offset within the value where the selection starts or ends,
1220 * respectively. 1243 * respectively.
1221 * @param {!chrome.automation.SetDocumentSelectionParams} params 1244 * @param {!chrome.automation.SetDocumentSelectionParams} params
1222 * @see https://developer.chrome.com/extensions/automation#method-setDocumentSel ection 1245 * @see https://developer.chrome.com/extensions/automation#method-setDocumentSel ection
1223 */ 1246 */
1224 chrome.automation.setDocumentSelection = function(params) {}; 1247 chrome.automation.setDocumentSelection = function(params) {};
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698