OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 | 5 |
6 /** | 6 /** |
7 * @fileoverview Definitions for the Chromium extensions API used by ChromeVox. | 7 * @fileoverview Definitions for the Chromium extensions API used by ChromeVox. |
8 * | 8 * |
9 * @externs | 9 * @externs |
10 */ | 10 */ |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 */ | 268 */ |
269 chrome.automation.TreeChange; | 269 chrome.automation.TreeChange; |
270 | 270 |
271 /** | 271 /** |
272 * @constructor | 272 * @constructor |
273 */ | 273 */ |
274 chrome.automation.AutomationNode = function() {}; | 274 chrome.automation.AutomationNode = function() {}; |
275 | 275 |
276 | 276 |
277 /** | 277 /** |
278 * Get the automation tree for the tab with the given tabId, or the current tab | |
279 * if no tabID is given, enabling automation if necessary. Returns a tree with a | |
280 * placeholder root node; listen for the "loadComplete" event to get a | |
281 * notification that the tree has fully loaded (the previous root node reference | |
282 * will stop working at or before this point). | |
283 * @param {number} tabId | 278 * @param {number} tabId |
284 * @param {function(chrome.automation.AutomationNode):void} callback | 279 * @param {function(chrome.automation.AutomationNode):void} callback |
285 * Called when the <code>AutomationNode</code> for the page is available. | |
286 */ | 280 */ |
287 chrome.automation.getTree = function(tabId, callback) {}; | 281 chrome.automation.getTree = function(tabId, callback) {}; |
288 | 282 |
289 /** | 283 /** @param {function(!chrome.automation.AutomationNode):void} callback */ |
290 * Get the automation tree for the whole desktop which consists of all on screen | |
291 * views. Note this API is currently only supported on Chrome OS. | |
292 * @param {function(!chrome.automation.AutomationNode):void} callback | |
293 * Called when the <code>AutomationNode</code> for the page is available. | |
294 */ | |
295 chrome.automation.getDesktop = function(callback) {}; | 284 chrome.automation.getDesktop = function(callback) {}; |
296 | 285 |
297 /** | 286 /** @param {function(chrome.automation.TreeChange):void} observer */ |
298 * Add a tree change observer. Tree change observers are static/global, | |
299 * they listen to tree changes across all trees. | |
300 * @param {function(chrome.automation.TreeChange):void} observer | |
301 * A listener for tree changes on the <code>AutomationNode</code> tree. | |
302 */ | |
303 chrome.automation.addTreeChangeObserver = function(observer) {}; | 287 chrome.automation.addTreeChangeObserver = function(observer) {}; |
304 | 288 |
305 /** | 289 /** @param {function(chrome.automation.TreeChange):void} observer */ |
306 * Remove a tree change observer. | |
307 * @param {function(chrome.automation.TreeChange):void} observer | |
308 * A listener for tree changes on the <code>AutomationNode</code> tree. | |
309 */ | |
310 chrome.automation.removeTreeChangeObserver = function(observer) {}; | 290 chrome.automation.removeTreeChangeObserver = function(observer) {}; |
311 | 291 |
| 292 /** @param {string} mask The new mask. */ |
| 293 chrome.automation.setTreeChangeObserverMask = function(mask) {}; |
| 294 |
312 // | 295 // |
313 // End auto generated externs; do not edit. | 296 // End auto generated externs; do not edit. |
314 // | 297 // |
315 | 298 |
316 | 299 |
317 | 300 |
318 /** | 301 /** |
319 * @type {chrome.automation.RoleType} | 302 * @type {chrome.automation.RoleType} |
320 */ | 303 */ |
321 chrome.automation.AutomationNode.prototype.role; | 304 chrome.automation.AutomationNode.prototype.role; |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 | 498 |
516 /** @type {string} */ | 499 /** @type {string} */ |
517 chrome.automation.AutomationNode.prototype.containerLiveRelevant; | 500 chrome.automation.AutomationNode.prototype.containerLiveRelevant; |
518 | 501 |
519 /** @type {boolean} */ | 502 /** @type {boolean} */ |
520 chrome.automation.AutomationNode.prototype.containerLiveAtomic; | 503 chrome.automation.AutomationNode.prototype.containerLiveAtomic; |
521 | 504 |
522 /** @type {boolean} */ | 505 /** @type {boolean} */ |
523 chrome.automation.AutomationNode.prototype.containerLiveBusy; | 506 chrome.automation.AutomationNode.prototype.containerLiveBusy; |
524 | 507 |
| 508 /** @type {string} */ |
| 509 chrome.automation.AutomationNode.prototype.liveStatus; |
| 510 |
| 511 /** @type {string} */ |
| 512 chrome.automation.AutomationNode.prototype.liveRelevant; |
| 513 |
| 514 /** @type {boolean} */ |
| 515 chrome.automation.AutomationNode.prototype.liveAtomic; |
| 516 |
| 517 /** @type {boolean} */ |
| 518 chrome.automation.AutomationNode.prototype.liveBusy; |
| 519 |
525 | 520 |
526 /** | 521 /** |
527 * @param {Object} findParams | 522 * @param {Object} findParams |
528 */ | 523 */ |
529 chrome.automation.AutomationNode.prototype.find = function(findParams) {}; | 524 chrome.automation.AutomationNode.prototype.find = function(findParams) {}; |
530 | 525 |
531 /** | 526 /** |
532 * @type {string} | 527 * @type {string} |
533 */ | 528 */ |
534 chrome.automation.AutomationNode.prototype.inputType; | 529 chrome.automation.AutomationNode.prototype.inputType; |
OLD | NEW |