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

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

Issue 2873373005: Add custom action support (Closed)
Patch Set: Fix format. 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
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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 DATE_TIME: 'dateTime', 104 DATE_TIME: 'dateTime',
105 DEFINITION: 'definition', 105 DEFINITION: 'definition',
106 DESCRIPTION_LIST_DETAIL: 'descriptionListDetail', 106 DESCRIPTION_LIST_DETAIL: 'descriptionListDetail',
107 DESCRIPTION_LIST: 'descriptionList', 107 DESCRIPTION_LIST: 'descriptionList',
108 DESCRIPTION_LIST_TERM: 'descriptionListTerm', 108 DESCRIPTION_LIST_TERM: 'descriptionListTerm',
109 DESKTOP: 'desktop', 109 DESKTOP: 'desktop',
110 DETAILS: 'details', 110 DETAILS: 'details',
111 DIALOG: 'dialog', 111 DIALOG: 'dialog',
112 DIRECTORY: 'directory', 112 DIRECTORY: 'directory',
113 DISCLOSURE_TRIANGLE: 'disclosureTriangle', 113 DISCLOSURE_TRIANGLE: 'disclosureTriangle',
114 // TODO(yawano): Remove div from extern file. This role no longer exists.
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',
121 GENERIC_CONTAINER: 'genericContainer', 123 GENERIC_CONTAINER: 'genericContainer',
122 GRID: 'grid', 124 GRID: 'grid',
123 GROUP: 'group', 125 GROUP: 'group',
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 * @see https://developer.chrome.com/extensions/automation#type-TreeChangeObserv erFilter 362 * @see https://developer.chrome.com/extensions/automation#type-TreeChangeObserv erFilter
361 */ 363 */
362 chrome.automation.TreeChangeObserverFilter = { 364 chrome.automation.TreeChangeObserverFilter = {
363 NO_TREE_CHANGES: 'noTreeChanges', 365 NO_TREE_CHANGES: 'noTreeChanges',
364 LIVE_REGION_TREE_CHANGES: 'liveRegionTreeChanges', 366 LIVE_REGION_TREE_CHANGES: 'liveRegionTreeChanges',
365 TEXT_MARKER_CHANGES: 'textMarkerChanges', 367 TEXT_MARKER_CHANGES: 'textMarkerChanges',
366 ALL_TREE_CHANGES: 'allTreeChanges', 368 ALL_TREE_CHANGES: 'allTreeChanges',
367 }; 369 };
368 370
369 /** 371 /**
372 * @typedef {{
373 * id: number,
374 * description: string
375 * }}
376 * @see https://developer.chrome.com/extensions/automation#type-CustomAction
377 */
378 chrome.automation.CustomAction;
379
380 /**
370 * @constructor 381 * @constructor
371 * @private 382 * @private
372 * @see https://developer.chrome.com/extensions/automation#type-AutomationNode 383 * @see https://developer.chrome.com/extensions/automation#type-AutomationNode
373 */ 384 */
374 chrome.automation.AutomationNode = function() {}; 385 chrome.automation.AutomationNode = function() {};
375 386
376 /** 387 /**
377 * The root node of the tree containing this AutomationNode. 388 * The root node of the tree containing this AutomationNode.
378 * @type {(!chrome.automation.AutomationNode|undefined)} 389 * @type {(!chrome.automation.AutomationNode|undefined)}
379 * @see https://developer.chrome.com/extensions/automation#type-root 390 * @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; 536 chrome.automation.AutomationNode.prototype.activeDescendant;
526 537
527 /** 538 /**
528 * The target of an in-page link. 539 * The target of an in-page link.
529 * @type {(!chrome.automation.AutomationNode|undefined)} 540 * @type {(!chrome.automation.AutomationNode|undefined)}
530 * @see https://developer.chrome.com/extensions/automation#type-inPageLinkTarget 541 * @see https://developer.chrome.com/extensions/automation#type-inPageLinkTarget
531 */ 542 */
532 chrome.automation.AutomationNode.prototype.inPageLinkTarget; 543 chrome.automation.AutomationNode.prototype.inPageLinkTarget;
533 544
534 /** 545 /**
546 * An array of custom actions.
547 * @type {(!Array<!chrome.automation.CustomAction>|undefined)}
548 * @see https://developer.chrome.com/extensions/automation#type-customActions
549 */
550 chrome.automation.AutomationNode.prototype.customActions;
551
552 /**
535 * The URL that this link will navigate to. 553 * The URL that this link will navigate to.
536 * @type {(string|undefined)} 554 * @type {(string|undefined)}
537 * @see https://developer.chrome.com/extensions/automation#type-url 555 * @see https://developer.chrome.com/extensions/automation#type-url
538 */ 556 */
539 chrome.automation.AutomationNode.prototype.url; 557 chrome.automation.AutomationNode.prototype.url;
540 558
541 /** 559 /**
542 * The URL of this document. 560 * The URL of this document.
543 * @type {(string|undefined)} 561 * @type {(string|undefined)}
544 * @see https://developer.chrome.com/extensions/automation#type-docUrl 562 * @see https://developer.chrome.com/extensions/automation#type-docUrl
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
1042 */ 1060 */
1043 chrome.automation.AutomationNode.prototype.hitTest = function(x, y, eventToFire) {}; 1061 chrome.automation.AutomationNode.prototype.hitTest = function(x, y, eventToFire) {};
1044 1062
1045 /** 1063 /**
1046 * Scrolls this node to make it visible. 1064 * Scrolls this node to make it visible.
1047 * @see https://developer.chrome.com/extensions/automation#method-makeVisible 1065 * @see https://developer.chrome.com/extensions/automation#method-makeVisible
1048 */ 1066 */
1049 chrome.automation.AutomationNode.prototype.makeVisible = function() {}; 1067 chrome.automation.AutomationNode.prototype.makeVisible = function() {};
1050 1068
1051 /** 1069 /**
1070 * Performs custom action.
1071 * @param {number} customActionId
1072 * @see https://developer.chrome.com/extensions/automation#method-performCustomA ction
1073 */
1074 chrome.automation.AutomationNode.prototype.performCustomAction = function(custom ActionId) {};
1075
1076 /**
1052 * Sets selection within a text field. 1077 * Sets selection within a text field.
1053 * @param {number} startIndex 1078 * @param {number} startIndex
1054 * @param {number} endIndex 1079 * @param {number} endIndex
1055 * @see https://developer.chrome.com/extensions/automation#method-setSelection 1080 * @see https://developer.chrome.com/extensions/automation#method-setSelection
1056 */ 1081 */
1057 chrome.automation.AutomationNode.prototype.setSelection = function(startIndex, e ndIndex) {}; 1082 chrome.automation.AutomationNode.prototype.setSelection = function(startIndex, e ndIndex) {};
1058 1083
1059 /** 1084 /**
1060 * Clears focus and sets this node as the starting point for the next time the 1085 * Clears focus and sets this node as the starting point for the next time the
1061 * user presses Tab or Shift+Tab. 1086 * 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 1240 * 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 1241 * 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 1242 * 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 1243 * the keyboard. For nodes with the role staticText, the offset gives the
1219 * character offset within the value where the selection starts or ends, 1244 * character offset within the value where the selection starts or ends,
1220 * respectively. 1245 * respectively.
1221 * @param {!chrome.automation.SetDocumentSelectionParams} params 1246 * @param {!chrome.automation.SetDocumentSelectionParams} params
1222 * @see https://developer.chrome.com/extensions/automation#method-setDocumentSel ection 1247 * @see https://developer.chrome.com/extensions/automation#method-setDocumentSel ection
1223 */ 1248 */
1224 chrome.automation.setDocumentSelection = function(params) {}; 1249 chrome.automation.setDocumentSelection = function(params) {};
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698