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

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

Issue 2795083003: Add support for in-page links in ChromeVox. (Closed)
Patch Set: Make getTree take optional callback as well. Created 3 years, 8 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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 254
255 /** 255 /**
256 * @enum {string} 256 * @enum {string}
257 * @see https://developer.chrome.com/extensions/automation#type-NameFromType 257 * @see https://developer.chrome.com/extensions/automation#type-NameFromType
258 */ 258 */
259 chrome.automation.NameFromType = { 259 chrome.automation.NameFromType = {
260 UNINITIALIZED: 'uninitialized', 260 UNINITIALIZED: 'uninitialized',
261 ATTRIBUTE: 'attribute', 261 ATTRIBUTE: 'attribute',
262 CONTENTS: 'contents', 262 CONTENTS: 'contents',
263 PLACEHOLDER: 'placeholder', 263 PLACEHOLDER: 'placeholder',
264 RELATED_ELEMENT: 'related_element', 264 RELATED_ELEMENT: 'relatedElement',
265 VALUE: 'value', 265 VALUE: 'value',
266 }; 266 };
267 267
268 /** 268 /**
269 * @typedef {{ 269 * @typedef {{
270 * left: number, 270 * left: number,
271 * top: number, 271 * top: number,
272 * width: number, 272 * width: number,
273 * height: number 273 * height: number
274 * }} 274 * }}
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 chrome.automation.AutomationNode.prototype.labelledBy; 510 chrome.automation.AutomationNode.prototype.labelledBy;
511 511
512 /** 512 /**
513 * The node referred to by <code>aria-activedescendant</code>, where applicable 513 * The node referred to by <code>aria-activedescendant</code>, where applicable
514 * @type {(!chrome.automation.AutomationNode|undefined)} 514 * @type {(!chrome.automation.AutomationNode|undefined)}
515 * @see https://developer.chrome.com/extensions/automation#type-activeDescendant 515 * @see https://developer.chrome.com/extensions/automation#type-activeDescendant
516 */ 516 */
517 chrome.automation.AutomationNode.prototype.activeDescendant; 517 chrome.automation.AutomationNode.prototype.activeDescendant;
518 518
519 /** 519 /**
520 * The target of an in page link.
521 * @type {(!chrome.automation.AutomationNode|undefined)}
522 * @see https://developer.chrome.com/extensions/automation#type-inPageLinkTarget
523 */
524 chrome.automation.AutomationNode.prototype.inPageLinkTarget;
525
526 /**
520 * The URL that this link will navigate to. 527 * The URL that this link will navigate to.
521 * @type {(string|undefined)} 528 * @type {(string|undefined)}
522 * @see https://developer.chrome.com/extensions/automation#type-url 529 * @see https://developer.chrome.com/extensions/automation#type-url
523 */ 530 */
524 chrome.automation.AutomationNode.prototype.url; 531 chrome.automation.AutomationNode.prototype.url;
525 532
526 /** 533 /**
527 * The URL of this document. 534 * The URL of this document.
528 * @type {(string|undefined)} 535 * @type {(string|undefined)}
529 * @see https://developer.chrome.com/extensions/automation#type-docUrl 536 * @see https://developer.chrome.com/extensions/automation#type-docUrl
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
1114 */ 1121 */
1115 chrome.automation.AutomationNode.prototype.matches = function(params) {}; 1122 chrome.automation.AutomationNode.prototype.matches = function(params) {};
1116 1123
1117 1124
1118 /** 1125 /**
1119 * Get the automation tree for the tab with the given tabId, or the current tab 1126 * Get the automation tree for the tab with the given tabId, or the current tab
1120 * if no tabID is given, enabling automation if necessary. Returns a tree with a 1127 * if no tabID is given, enabling automation if necessary. Returns a tree with a
1121 * placeholder root node; listen for the "loadComplete" event to get a 1128 * placeholder root node; listen for the "loadComplete" event to get a
1122 * notification that the tree has fully loaded (the previous root node reference 1129 * notification that the tree has fully loaded (the previous root node reference
1123 * will stop working at or before this point). 1130 * will stop working at or before this point).
1124 * @param {number} tabId 1131 * @param {number=} tabId
1125 * @param {function(!chrome.automation.AutomationNode):void} callback Called 1132 * @param {function(!chrome.automation.AutomationNode):void=} callback Called
1126 * when the <code>AutomationNode</code> for the page is available. 1133 * when the <code>AutomationNode</code> for the page is available.
1127 * @see https://developer.chrome.com/extensions/automation#method-getTree 1134 * @see https://developer.chrome.com/extensions/automation#method-getTree
1128 */ 1135 */
1129 chrome.automation.getTree = function(tabId, callback) {}; 1136 chrome.automation.getTree = function(tabId, callback) {};
1130 1137
1131 /** 1138 /**
1132 * Get the automation tree for the whole desktop which consists of all on screen 1139 * Get the automation tree for the whole desktop which consists of all on screen
1133 * views. Note this API is currently only supported on Chrome OS. 1140 * views. Note this API is currently only supported on Chrome OS.
1134 * @param {function(!chrome.automation.AutomationNode):void} callback Called 1141 * @param {function(!chrome.automation.AutomationNode):void} callback Called
1135 * when the <code>AutomationNode</code> for the page is available. 1142 * when the <code>AutomationNode</code> for the page is available.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
1172 * tree between the two node/offset pairs gets included in the selection. The 1179 * tree between the two node/offset pairs gets included in the selection. The
1173 * anchor is where the user started the selection, while the focus is the point 1180 * anchor is where the user started the selection, while the focus is the point
1174 * at which the selection gets extended e.g. when dragging with a mouse or using 1181 * at which the selection gets extended e.g. when dragging with a mouse or using
1175 * the keyboard. For nodes with the role staticText, the offset gives the 1182 * the keyboard. For nodes with the role staticText, the offset gives the
1176 * character offset within the value where the selection starts or ends, 1183 * character offset within the value where the selection starts or ends,
1177 * respectively. 1184 * respectively.
1178 * @param {!chrome.automation.SetDocumentSelectionParams} params 1185 * @param {!chrome.automation.SetDocumentSelectionParams} params
1179 * @see https://developer.chrome.com/extensions/automation#method-setDocumentSel ection 1186 * @see https://developer.chrome.com/extensions/automation#method-setDocumentSel ection
1180 */ 1187 */
1181 chrome.automation.setDocumentSelection = function(params) {}; 1188 chrome.automation.setDocumentSelection = function(params) {};
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698