summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/resources/chromeos/chromevox/host/chrome/externs.js
blob: f49f93e27df0882f47a92d8f80f7b9363d2f4a29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

/**
 * @param {string} url
 * @constructor
 */
function Audio(url) {}
Audio.prototype.play;
Audio.prototype.pause;
Audio.prototype.autoplay;

/**
 * @type {Object}
 */
chrome.brailleDisplayPrivate = {};

/**
 * @param {function(!{available: boolean, textCellCount: (number|undefined)})}
 *        callback
 */
chrome.brailleDisplayPrivate.getDisplayState = function(callback) {};

/**
 * @type {ChromeEvent}
 */
chrome.brailleDisplayPrivate.onDisplayStateChanged;

/**
 * @type {ChromeEvent}
 */
chrome.brailleDisplayPrivate.onKeyEvent;

/**
 * @param {ArrayBuffer} cells
 */
chrome.brailleDisplayPrivate.writeDots = function(cells) {};

/**
 * @const
 */
chrome.virtualKeyboardPrivate = {};

/**
 * @typedef {{type: string, charValue: number, keyCode: number,
 *            keyName: string, modifiers: (number|undefined)}}
 */
chrome.virtualKeyboardPrivate.VirtualKeyboardEvent;

/**
 * @param {chrome.virtualKeyboardPrivate.VirtualKeyboardEvent} keyEvent
 * @param {Function=} opt_callback
 */
chrome.virtualKeyboardPrivate.sendKeyEvent =
    function(keyEvent, opt_callback) {};
/**
 * @type {Object}
 */
window.speechSynthesis;