| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 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 // This file was generated by: |
| 6 // tools/json_schema_compiler/compiler.py. |
| 7 // NOTE: The format of types has changed. 'FooType' is now |
| 8 // 'chrome.inputMethodPrivate.FooType'. |
| 9 // Please run the closure compiler before committing changes. |
| 10 // See https://chromium.googlesource.com/chromium/src/+/master/docs/closure_comp
ilation.md |
| 11 |
| 12 /** @fileoverview Externs generated from namespace: inputMethodPrivate */ |
| 13 |
| 14 /** |
| 15 * @const |
| 16 */ |
| 17 chrome.inputMethodPrivate = {}; |
| 18 |
| 19 /** |
| 20 * Gets configurations for input methods. |
| 21 * @param {function({ |
| 22 * isPhysicalKeyboardAutocorrectEnabled: boolean, |
| 23 * isImeMenuActivated: boolean |
| 24 * }):void} callback Callback which is called with the config object. |
| 25 * @see https://developer.chrome.com/extensions/inputMethodPrivate#method-getInp
utMethodConfig |
| 26 */ |
| 27 chrome.inputMethodPrivate.getInputMethodConfig = function(callback) {}; |
| 28 |
| 29 /** |
| 30 * Gets all whitelisted input methods. |
| 31 * @param {function(!Array<{ |
| 32 * id: string, |
| 33 * name: string, |
| 34 * indicator: string |
| 35 * }>):void} callback Callback which is called with the input method objects. |
| 36 * @see https://developer.chrome.com/extensions/inputMethodPrivate#method-getInp
utMethods |
| 37 */ |
| 38 chrome.inputMethodPrivate.getInputMethods = function(callback) {}; |
| 39 |
| 40 /** |
| 41 * Gets the current input method. |
| 42 * @param {function(string):void} callback Callback which is called with the |
| 43 * current input method. |
| 44 * @see https://developer.chrome.com/extensions/inputMethodPrivate#method-getCur
rentInputMethod |
| 45 */ |
| 46 chrome.inputMethodPrivate.getCurrentInputMethod = function(callback) {}; |
| 47 |
| 48 /** |
| 49 * Sets the current input method. |
| 50 * @param {string} inputMethodId The input method ID to be set as current input |
| 51 * method. |
| 52 * @param {function():void=} callback Callback which is called once the current |
| 53 * input method is set. If unsuccessful $(ref:runtime.lastError) is set. |
| 54 * @see https://developer.chrome.com/extensions/inputMethodPrivate#method-setCur
rentInputMethod |
| 55 */ |
| 56 chrome.inputMethodPrivate.setCurrentInputMethod = function(inputMethodId, callba
ck) {}; |
| 57 |
| 58 /** |
| 59 * Fetches a list of all the words currently in the dictionary. |
| 60 * @param {function(!Array<string>):void} callback Callback which is called once |
| 61 * the list of dictionary words are ready. |
| 62 * @see https://developer.chrome.com/extensions/inputMethodPrivate#method-fetchA
llDictionaryWords |
| 63 */ |
| 64 chrome.inputMethodPrivate.fetchAllDictionaryWords = function(callback) {}; |
| 65 |
| 66 /** |
| 67 * Adds a single word to be stored in the dictionary. |
| 68 * @param {string} word A new word to add to the dictionary. |
| 69 * @param {function():void=} callback Callback which is called once the word is |
| 70 * added. If unsuccessful $(ref:runtime.lastError) is set. |
| 71 * @see https://developer.chrome.com/extensions/inputMethodPrivate#method-addWor
dToDictionary |
| 72 */ |
| 73 chrome.inputMethodPrivate.addWordToDictionary = function(word, callback) {}; |
| 74 |
| 75 /** |
| 76 * Gets whether the encrypt sync is enabled. |
| 77 * @param {function(boolean):void=} callback Callback which is called to provide |
| 78 * the result. |
| 79 * @see https://developer.chrome.com/extensions/inputMethodPrivate#method-getEnc
ryptSyncEnabled |
| 80 */ |
| 81 chrome.inputMethodPrivate.getEncryptSyncEnabled = function(callback) {}; |
| 82 |
| 83 /** |
| 84 * Sets the XKB layout for the given input method. |
| 85 * @param {string} xkb_name The XKB layout name. |
| 86 * @param {function():void=} callback Callback which is called when the layout |
| 87 * is set. |
| 88 * @see https://developer.chrome.com/extensions/inputMethodPrivate#method-setXkb
Layout |
| 89 */ |
| 90 chrome.inputMethodPrivate.setXkbLayout = function(xkb_name, callback) {}; |
| 91 |
| 92 /** |
| 93 * Fired when the input method is changed. |
| 94 * @type {!ChromeEvent} |
| 95 * @see https://developer.chrome.com/extensions/inputMethodPrivate#event-onChang
ed |
| 96 */ |
| 97 chrome.inputMethodPrivate.onChanged; |
| 98 |
| 99 /** |
| 100 * Fired when the composition bounds or cursor bounds are changed. |
| 101 * @type {!ChromeEvent} |
| 102 * @see https://developer.chrome.com/extensions/inputMethodPrivate#event-onCompo
sitionBoundsChanged |
| 103 */ |
| 104 chrome.inputMethodPrivate.onCompositionBoundsChanged; |
| 105 |
| 106 /** |
| 107 * Fired when the custom spelling dictionary is loaded. |
| 108 * @type {!ChromeEvent} |
| 109 * @see https://developer.chrome.com/extensions/inputMethodPrivate#event-onDicti
onaryLoaded |
| 110 */ |
| 111 chrome.inputMethodPrivate.onDictionaryLoaded; |
| 112 |
| 113 /** |
| 114 * Fired when words are added or removed from the custom spelling dictionary. |
| 115 * @type {!ChromeEvent} |
| 116 * @see https://developer.chrome.com/extensions/inputMethodPrivate#event-onDicti
onaryChanged |
| 117 */ |
| 118 chrome.inputMethodPrivate.onDictionaryChanged; |
| 119 |
| 120 /** |
| 121 * Fired when the IME menu is activated or deactivated. |
| 122 * @type {!ChromeEvent} |
| 123 * @see https://developer.chrome.com/extensions/inputMethodPrivate#event-onImeMe
nuActivationChanged |
| 124 */ |
| 125 chrome.inputMethodPrivate.onImeMenuActivationChanged; |
| OLD | NEW |