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 * @fileoverview Externs for the braille IME. | 6 * @fileoverview Externs for the braille IME. |
7 * @externs | 7 * @externs |
8 */ | 8 */ |
9 | 9 |
10 /** | 10 /** |
(...skipping 24 matching lines...) Expand all Loading... | |
35 chrome.input.ime.commitText = function(parameters, opt_callback) {}; | 35 chrome.input.ime.commitText = function(parameters, opt_callback) {}; |
36 | 36 |
37 /** | 37 /** |
38 * @param {!Object.<string,(string|number)>} parameters An object with | 38 * @param {!Object.<string,(string|number)>} parameters An object with |
39 * 'contextID' (number) and 'text' (string) keys. | 39 * 'contextID' (number) and 'text' (string) keys. |
40 * @param {function(boolean): void=} opt_callback Callback function. | 40 * @param {function(boolean): void=} opt_callback Callback function. |
41 */ | 41 */ |
42 chrome.input.ime.deleteSurroundingText = function(parameters, opt_callback) {}; | 42 chrome.input.ime.deleteSurroundingText = function(parameters, opt_callback) {}; |
43 | 43 |
44 /** | 44 /** |
45 * @param {string} requestId | |
46 * @param {boolean} response | |
47 */ | |
48 chrome.input.ime.keyEventHandled = function(requestId, response) {}; | |
49 | |
David Tseng
2014/06/19 21:30:16
lots of whitespace here?
| |
50 | |
51 | |
52 /** | |
45 * @param {{engineID: string, items: Array.<chrome.input.ime.MenuItem>}} | 53 * @param {{engineID: string, items: Array.<chrome.input.ime.MenuItem>}} |
46 * parameters | 54 * parameters |
47 * @param {function()=} opt_callback | 55 * @param {function()=} opt_callback |
48 */ | 56 */ |
49 chrome.input.ime.setMenuItems = function(parameters, opt_callback) {}; | 57 chrome.input.ime.setMenuItems = function(parameters, opt_callback) {}; |
50 | 58 |
51 /** @type {!ChromeEvent} */ | 59 /** @type {!ChromeEvent} */ |
52 chrome.input.ime.onActivate; | 60 chrome.input.ime.onActivate; |
53 | 61 |
54 /** @type {!ChromeEvent} */ | 62 /** @type {!ChromeEvent} */ |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
137 | 145 |
138 /** @type {boolean} */ | 146 /** @type {boolean} */ |
139 ChromeKeyboardEvent.prototype.ctrlKey; | 147 ChromeKeyboardEvent.prototype.ctrlKey; |
140 | 148 |
141 /** @type {boolean} */ | 149 /** @type {boolean} */ |
142 ChromeKeyboardEvent.prototype.shiftKey; | 150 ChromeKeyboardEvent.prototype.shiftKey; |
143 | 151 |
144 /** @type {boolean} */ | 152 /** @type {boolean} */ |
145 ChromeKeyboardEvent.prototype.capsLock; | 153 ChromeKeyboardEvent.prototype.capsLock; |
146 | 154 |
155 /** @type {string} */ | |
156 ChromeKeyboardEvent.prototype.requestId; | |
157 | |
147 /** | 158 /** |
148 * @constructor | 159 * @constructor |
149 */ | 160 */ |
150 function InputContext() {} | 161 function InputContext() {} |
151 | 162 |
152 /** @type {number} */ | 163 /** @type {number} */ |
153 InputContext.prototype.contextID; | 164 InputContext.prototype.contextID; |
154 | 165 |
155 /** @type {string} */ | 166 /** @type {string} */ |
156 InputContext.prototype.type; | 167 InputContext.prototype.type; |
157 | 168 |
158 /** | 169 /** |
159 * @typedef {{ | 170 * @typedef {{ |
160 * id: string, | 171 * id: string, |
161 * label: (string|undefined), | 172 * label: (string|undefined), |
162 * style: string, | 173 * style: string, |
163 * visible: (boolean|undefined), | 174 * visible: (boolean|undefined), |
164 * checked: (boolean|undefined), | 175 * checked: (boolean|undefined), |
165 * enabled: (boolean|undefined) | 176 * enabled: (boolean|undefined) |
166 * }} | 177 * }} |
167 */ | 178 */ |
168 chrome.input.ime.MenuItem; | 179 chrome.input.ime.MenuItem; |
169 | 180 |
170 /** | 181 /** |
171 * @type {Object} | 182 * @type {Object} |
172 */ | 183 */ |
173 var localStorage; | 184 var localStorage; |
OLD | NEW |