blob: af4e2f40ce934df76c0ff427199374583c468141 (
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
// 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.
// Common external variables when compiling ChromeVox background code
var localStorage = {};
/**
* @type {Object}
*/
chrome.systemPrivate = {};
/**
* @param {function(!Object)} callback
*/
chrome.systemPrivate.getUpdateStatus = function(callback) {};
/** @type {ChromeEvent} */
chrome.systemPrivate.onBrightnessChanged;
/** @type ChromeEvent */
chrome.systemPrivate.onVolumeChanged;
/** @type ChromeEvent */
chrome.systemPrivate.onScreenUnlocked;
/** @type ChromeEvent */
chrome.systemPrivate.onWokeUp;
/**
* @type {Object}
*/
chrome.accessibilityPrivate = {};
/**
* @param {boolean} on
*/
chrome.accessibilityPrivate.setAccessibilityEnabled = function(on) {};
/**
* @param {boolean} on
*/
chrome.accessibilityPrivate.setNativeAccessibilityEnabled = function(on) {
};
/**
* @param {number} tabId
* @param {function(Array.<!Object>)} callback
*/
chrome.accessibilityPrivate.getAlertsForTab =
function(tabId, callback) {};
/** @type ChromeEvent */
chrome.accessibilityPrivate.onWindowOpened;
/** @type ChromeEvent */
chrome.accessibilityPrivate.onWindowClosed;
/** @type ChromeEvent */
chrome.accessibilityPrivate.onMenuOpened;
/** @type ChromeEvent */
chrome.accessibilityPrivate.onMenuClosed;
/** @type ChromeEvent */
chrome.accessibilityPrivate.onControlFocused;
/** @type ChromeEvent */
chrome.accessibilityPrivate.onControlAction;
/** @type ChromeEvent */
chrome.accessibilityPrivate.onControlHover;
/** @type ChromeEvent */
chrome.accessibilityPrivate.onTextChanged;
/** @type ChromeEvent */
chrome.accessibilityPrivate.onChromeVoxLoadStateChanged;
/** @type {function()} */
chrome.accessibilityPrivate.onChromeVoxLoadStateChanged.destroy_;
/**
* @type {Object}
*/
chrome.experimental = {};
/**
* @type {Object}
*
* TODO(dmazzoni): Remove after the stable version of Chrome no longer
* has the experimental accessibility API.
*/
chrome.experimental.accessibility = chrome.accessibilityPrivate;
/**
*
*/
chrome.app.getDetails = function() {};
/** @constructor */
var AccessibilityObject = function() {};
/** @type {string} */
AccessibilityObject.prototype.type;
/** @type {string} */
AccessibilityObject.prototype.name;
/** @type {Object} */
AccessibilityObject.prototype.details;
/** @type {string} */
AccessibilityObject.prototype.details.value;
/** @type {number} */
AccessibilityObject.prototype.details.selectionStart;
/** @type {number} */
AccessibilityObject.prototype.details.selectionEnd;
/** @type {number} */
AccessibilityObject.prototype.details.itemCount;
/** @type {number} */
AccessibilityObject.prototype.details.itemIndex;
|