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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 | 291 |
292 /** | 292 /** |
293 * @param {number} tabId | 293 * @param {number} tabId |
294 * @param {function(chrome.automation.AutomationNode):void} callback | 294 * @param {function(chrome.automation.AutomationNode):void} callback |
295 */ | 295 */ |
296 chrome.automation.getTree = function(tabId, callback) {}; | 296 chrome.automation.getTree = function(tabId, callback) {}; |
297 | 297 |
298 /** @param {function(!chrome.automation.AutomationNode):void} callback */ | 298 /** @param {function(!chrome.automation.AutomationNode):void} callback */ |
299 chrome.automation.getDesktop = function(callback) {}; | 299 chrome.automation.getDesktop = function(callback) {}; |
300 | 300 |
| 301 /** @param {function(!chrome.automation.AutomationNode):void} callback */ |
| 302 chrome.automation.getFocus = function(callback) {}; |
| 303 |
301 /** | 304 /** |
302 * @param {string} filter | 305 * @param {string} filter |
303 * @param {function(chrome.automation.TreeChange) : void} | 306 * @param {function(chrome.automation.TreeChange) : void} |
304 * observer | 307 * observer |
305 */ | 308 */ |
306 chrome.automation.addTreeChangeObserver = function(filter, observer) {}; | 309 chrome.automation.addTreeChangeObserver = function(filter, observer) {}; |
307 | 310 |
308 /** | 311 /** |
309 * @param {function(chrome.automation.TreeChange) : void} observer | 312 * @param {function(chrome.automation.TreeChange) : void} observer |
310 */ | 313 */ |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 | 550 |
548 /** | 551 /** |
549 * @type {(Array<number>|undefined)} | 552 * @type {(Array<number>|undefined)} |
550 */ | 553 */ |
551 chrome.automation.AutomationNode.prototype.lineBreaks; | 554 chrome.automation.AutomationNode.prototype.lineBreaks; |
552 | 555 |
553 /** | 556 /** |
554 * @type {(number|undefined)} | 557 * @type {(number|undefined)} |
555 */ | 558 */ |
556 chrome.automation.focusOffset; | 559 chrome.automation.focusOffset; |
OLD | NEW |