| 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 |
| 50 /** |
| 45 * @param {{engineID: string, items: Array.<chrome.input.ime.MenuItem>}} | 51 * @param {{engineID: string, items: Array.<chrome.input.ime.MenuItem>}} |
| 46 * parameters | 52 * parameters |
| 47 * @param {function()=} opt_callback | 53 * @param {function()=} opt_callback |
| 48 */ | 54 */ |
| 49 chrome.input.ime.setMenuItems = function(parameters, opt_callback) {}; | 55 chrome.input.ime.setMenuItems = function(parameters, opt_callback) {}; |
| 50 | 56 |
| 51 /** @type {!ChromeEvent} */ | 57 /** @type {!ChromeEvent} */ |
| 52 chrome.input.ime.onActivate; | 58 chrome.input.ime.onActivate; |
| 53 | 59 |
| 54 /** @type {!ChromeEvent} */ | 60 /** @type {!ChromeEvent} */ |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 | 143 |
| 138 /** @type {boolean} */ | 144 /** @type {boolean} */ |
| 139 ChromeKeyboardEvent.prototype.ctrlKey; | 145 ChromeKeyboardEvent.prototype.ctrlKey; |
| 140 | 146 |
| 141 /** @type {boolean} */ | 147 /** @type {boolean} */ |
| 142 ChromeKeyboardEvent.prototype.shiftKey; | 148 ChromeKeyboardEvent.prototype.shiftKey; |
| 143 | 149 |
| 144 /** @type {boolean} */ | 150 /** @type {boolean} */ |
| 145 ChromeKeyboardEvent.prototype.capsLock; | 151 ChromeKeyboardEvent.prototype.capsLock; |
| 146 | 152 |
| 153 /** @type {string} */ |
| 154 ChromeKeyboardEvent.prototype.requestId; |
| 155 |
| 147 /** | 156 /** |
| 148 * @constructor | 157 * @constructor |
| 149 */ | 158 */ |
| 150 function InputContext() {} | 159 function InputContext() {} |
| 151 | 160 |
| 152 /** @type {number} */ | 161 /** @type {number} */ |
| 153 InputContext.prototype.contextID; | 162 InputContext.prototype.contextID; |
| 154 | 163 |
| 155 /** @type {string} */ | 164 /** @type {string} */ |
| 156 InputContext.prototype.type; | 165 InputContext.prototype.type; |
| 157 | 166 |
| 158 /** | 167 /** |
| 159 * @typedef {{ | 168 * @typedef {{ |
| 160 * id: string, | 169 * id: string, |
| 161 * label: (string|undefined), | 170 * label: (string|undefined), |
| 162 * style: string, | 171 * style: string, |
| 163 * visible: (boolean|undefined), | 172 * visible: (boolean|undefined), |
| 164 * checked: (boolean|undefined), | 173 * checked: (boolean|undefined), |
| 165 * enabled: (boolean|undefined) | 174 * enabled: (boolean|undefined) |
| 166 * }} | 175 * }} |
| 167 */ | 176 */ |
| 168 chrome.input.ime.MenuItem; | 177 chrome.input.ime.MenuItem; |
| 169 | 178 |
| 170 /** | 179 /** |
| 171 * @type {Object} | 180 * @type {Object} |
| 172 */ | 181 */ |
| 173 var localStorage; | 182 var localStorage; |
| OLD | NEW |