externs.js revision 116680a4aac90f2aa7413d9095a592090648e557
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
3// found in the LICENSE file.
4
5/**
6 * @param {string} url
7 * @constructor
8 */
9function Audio(url) {}
10Audio.prototype.play;
11Audio.prototype.pause;
12Audio.prototype.autoplay;
13
14/**
15 * @type {Object}
16 */
17chrome.brailleDisplayPrivate = {};
18
19/**
20 * @param {function(!{available: boolean, textCellCount: (number|undefined)})}
21 *        callback
22 */
23chrome.brailleDisplayPrivate.getDisplayState = function(callback) {};
24
25/**
26 * @type {ChromeEvent}
27 */
28chrome.brailleDisplayPrivate.onDisplayStateChanged;
29
30/**
31 * @type {ChromeEvent}
32 */
33chrome.brailleDisplayPrivate.onKeyEvent;
34
35/**
36 * @param {ArrayBuffer} cells
37 */
38chrome.brailleDisplayPrivate.writeDots = function(cells) {};
39
40/**
41 * @const
42 */
43chrome.virtualKeyboardPrivate = {};
44
45/**
46 * @typedef {{type: string, charValue: number, keyCode: number,
47 *            keyName: string, modifiers: (number|undefined)}}
48 */
49chrome.virtualKeyboardPrivate.VirtualKeyboardEvent;
50
51/**
52 * @param {chrome.virtualKeyboardPrivate.VirtualKeyboardEvent} keyEvent
53 * @param {Function=} opt_callback
54 */
55chrome.virtualKeyboardPrivate.sendKeyEvent =
56    function(keyEvent, opt_callback) {};
57