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

Side by Side Diff: chrome/browser/resources/chromeos/chromevox/common/chrome_extension_externs.js

Issue 1457683009: Complete live region support in ChromeVox Next. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed last feedback Created 5 years 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 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
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 /**
298 * Add a tree change observer. Tree change observers are static/global, 287 * @param {string} filter
299 * they listen to tree changes across all trees. 288 * @param {function(chrome.automation.TreeChange) : void}
300 * @param {function(chrome.automation.TreeChange):void} observer 289 * observer
301 * A listener for tree changes on the <code>AutomationNode</code> tree.
302 */ 290 */
303 chrome.automation.addTreeChangeObserver = function(observer) {}; 291 chrome.automation.addTreeChangeObserver = function(filter, observer) {};
304 292
305 /** 293 /**
306 * Remove a tree change observer. 294 * @param {function(chrome.automation.TreeChange) : void} observer
307 * @param {function(chrome.automation.TreeChange):void} observer
308 * A listener for tree changes on the <code>AutomationNode</code> tree.
309 */ 295 */
310 chrome.automation.removeTreeChangeObserver = function(observer) {}; 296 chrome.automation.removeTreeChangeObserver = function(observer) {};
311 297
312 // 298 //
313 // End auto generated externs; do not edit. 299 // End auto generated externs; do not edit.
314 // 300 //
315 301
316 302
317 303
318 /** 304 /**
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 */ 456 */
471 chrome.automation.TreeChange.prototype.target; 457 chrome.automation.TreeChange.prototype.target;
472 458
473 459
474 /** 460 /**
475 * @type {chrome.automation.TreeChangeType} 461 * @type {chrome.automation.TreeChangeType}
476 */ 462 */
477 chrome.automation.TreeChange.prototype.type; 463 chrome.automation.TreeChange.prototype.type;
478 464
479 465
480 /**
481 * @param {function(chrome.automation.TreeChange) : void}
482 * callback
483 */
484 chrome.automation.AutomationNode.prototype.addTreeChangeObserver =
485 function(callback) {};
486
487
488 /**
489 * @param {function(chrome.automation.TreeChange) : void}
490 * callback
491 */
492 chrome.automation.AutomationNode.prototype.removeTreeChangeObserver =
493 function(callback) {};
494
495
496 chrome.automation.AutomationNode.prototype.doDefault = function() {}; 466 chrome.automation.AutomationNode.prototype.doDefault = function() {};
497 467
498 468
499 chrome.automation.AutomationNode.prototype.focus = function() {}; 469 chrome.automation.AutomationNode.prototype.focus = function() {};
500 470
501 471
502 chrome.automation.AutomationNode.prototype.showContextMenu = function() {}; 472 chrome.automation.AutomationNode.prototype.showContextMenu = function() {};
503 473
504 474
505 /** 475 /**
506 * @param {number} start 476 * @param {number} start
507 * @param {number} end 477 * @param {number} end
508 */ 478 */
509 chrome.automation.AutomationNode.prototype.setSelection = 479 chrome.automation.AutomationNode.prototype.setSelection =
510 function(start, end) {}; 480 function(start, end) {};
511 481
512 482
513 /** @type {string} */ 483 /** @type {string} */
514 chrome.automation.AutomationNode.prototype.containerLiveStatus; 484 chrome.automation.AutomationNode.prototype.containerLiveStatus;
515 485
516 /** @type {string} */ 486 /** @type {string} */
517 chrome.automation.AutomationNode.prototype.containerLiveRelevant; 487 chrome.automation.AutomationNode.prototype.containerLiveRelevant;
518 488
519 /** @type {boolean} */ 489 /** @type {boolean} */
520 chrome.automation.AutomationNode.prototype.containerLiveAtomic; 490 chrome.automation.AutomationNode.prototype.containerLiveAtomic;
521 491
522 /** @type {boolean} */ 492 /** @type {boolean} */
523 chrome.automation.AutomationNode.prototype.containerLiveBusy; 493 chrome.automation.AutomationNode.prototype.containerLiveBusy;
524 494
495 /** @type {string} */
496 chrome.automation.AutomationNode.prototype.liveStatus;
497
498 /** @type {string} */
499 chrome.automation.AutomationNode.prototype.liveRelevant;
500
501 /** @type {boolean} */
502 chrome.automation.AutomationNode.prototype.liveAtomic;
503
504 /** @type {boolean} */
505 chrome.automation.AutomationNode.prototype.liveBusy;
506
525 507
526 /** 508 /**
527 * @param {Object} findParams 509 * @param {Object} findParams
528 */ 510 */
529 chrome.automation.AutomationNode.prototype.find = function(findParams) {}; 511 chrome.automation.AutomationNode.prototype.find = function(findParams) {};
530 512
531 /** 513 /**
532 * @type {string} 514 * @type {string}
533 */ 515 */
534 chrome.automation.AutomationNode.prototype.inputType; 516 chrome.automation.AutomationNode.prototype.inputType;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698