Upstream version 8.37.180.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / resources / chromeos / chromevox / chromevox / background / externs.js
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 // Common external variables when compiling ChromeVox background code
6
7 var localStorage = {};
8
9 /**
10  * @type {Object}
11  */
12 chrome.systemPrivate = {};
13
14 /**
15  * @param {function(!Object)} callback
16  */
17 chrome.systemPrivate.getUpdateStatus = function(callback) {};
18
19 /** @type {ChromeEvent} */
20 chrome.systemPrivate.onBrightnessChanged;
21
22 /** @type ChromeEvent */
23 chrome.systemPrivate.onVolumeChanged;
24
25 /** @type ChromeEvent */
26 chrome.systemPrivate.onScreenUnlocked;
27
28 /** @type ChromeEvent */
29 chrome.systemPrivate.onWokeUp;
30
31
32 /**
33  * @type {Object}
34  */
35 chrome.accessibilityPrivate = {};
36
37 /**
38  * @param {boolean} on
39  */
40 chrome.accessibilityPrivate.setAccessibilityEnabled = function(on) {};
41
42 /**
43  * @param {boolean} on
44  */
45 chrome.accessibilityPrivate.setNativeAccessibilityEnabled = function(on) {
46 };
47
48 /**
49  * @param {number} tabId
50  * @param {function(Array.<!Object>)} callback
51  */
52 chrome.accessibilityPrivate.getAlertsForTab =
53     function(tabId, callback) {};
54
55 /** @type ChromeEvent */
56 chrome.accessibilityPrivate.onWindowOpened;
57
58 /** @type ChromeEvent */
59 chrome.accessibilityPrivate.onWindowClosed;
60
61 /** @type ChromeEvent */
62 chrome.accessibilityPrivate.onMenuOpened;
63
64 /** @type ChromeEvent */
65 chrome.accessibilityPrivate.onMenuClosed;
66
67 /** @type ChromeEvent */
68 chrome.accessibilityPrivate.onControlFocused;
69
70 /** @type ChromeEvent */
71 chrome.accessibilityPrivate.onControlAction;
72
73 /** @type ChromeEvent */
74 chrome.accessibilityPrivate.onControlHover;
75
76 /** @type ChromeEvent */
77 chrome.accessibilityPrivate.onTextChanged;
78
79 /** @type ChromeEvent */
80 chrome.accessibilityPrivate.onChromeVoxLoadStateChanged;
81 /** @type {function()} */
82 chrome.accessibilityPrivate.onChromeVoxLoadStateChanged.destroy_;
83
84
85 /**
86  * @type {Object}
87  */
88 chrome.experimental = {};
89
90 /**
91  * @type {Object}
92  *
93  * TODO(dmazzoni): Remove after the stable version of Chrome no longer
94  * has the experimental accessibility API.
95  */
96 chrome.experimental.accessibility = chrome.accessibilityPrivate;
97
98
99 /**
100  *
101  */
102 chrome.app.getDetails = function() {};
103
104 /** @constructor */
105 var AccessibilityObject = function() {};
106 /** @type {string} */
107 AccessibilityObject.prototype.type;
108 /** @type {string} */
109 AccessibilityObject.prototype.name;
110 /** @type {Object} */
111 AccessibilityObject.prototype.details;
112 /** @type {string} */
113 AccessibilityObject.prototype.details.value;
114 /** @type {number} */
115 AccessibilityObject.prototype.details.selectionStart;
116 /** @type {number} */
117 AccessibilityObject.prototype.details.selectionEnd;
118 /** @type {number} */
119 AccessibilityObject.prototype.details.itemCount;
120 /** @type {number} */
121 AccessibilityObject.prototype.details.itemIndex;