1 // Copyright (c) 2012 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.
7 "namespace": "inputMethodPrivate",
11 "name": "getInputMethodConfig",
13 "description": "Gets configurations for input methods.",
19 "description": "Callback which is called with the config object.",
24 "description": "The input method config object.",
26 "isPhysicalKeyboardAutocorrectEnabled": {"type": "boolean"}
33 "name": "getInputMethods",
35 "description": "Gets all whitelisted input methods.",
41 "description": "Callback which is called with the input method objects.",
44 "name": "inputMethods",
46 "description": "Whitelisted input method objects.",
50 "id": {"type": "string"},
51 "name": {"type": "string"},
52 "indicator": {"type": "string"}
60 "name": "getCurrentInputMethod",
62 "description": "Gets the current input method.",
68 "description": "Callback which is called with the current input method.",
71 "name": "inputMethodId",
73 "description": "Current input method."
79 "name": "setCurrentInputMethod",
81 "description": "Sets the current input method.",
84 "name": "inputMethodId",
87 "description": "The input method ID to be set as current input method."
93 "description": "Callback which is called once the current input method is set. If unsuccessful $(ref:runtime.lastError) is set.",
98 "name": "fetchAllDictionaryWords",
100 "description": "Fetches a list of all the words currently in the dictionary.",
106 "description": "Callback which is called once the list of dictionary words are ready.",
111 "description": "List of dictionary words.",
120 "name": "addWordToDictionary",
122 "description": "Adds a single word to be stored in the dictionary.",
128 "description": "A new word to add to the dictionary."
134 "description": "Callback which is called once the word is added. If unsuccessful $(ref:runtime.lastError) is set.",
139 "name": "getEncryptSyncEnabled",
141 "description": "Gets whether the encrypt sync is enabled.",
147 "description": "Callback which is called to provide the result.",
153 "description": "The result of whether enabled."
164 "description": "Fired when the input method is changed.",
167 "name": "newInputMethodId",
169 "description": "New input method which is being used."
173 "name": "onCompositionBoundsChanged",
175 "description": "Fired when the composition bounds or cursor bounds are changed.",
178 "name": "firstBounds",
180 "description": "The bounds information for the first character in composition.",
182 "x": {"type": "integer"},
183 "y": {"type": "integer"},
184 "w": {"type": "integer"},
185 "h": {"type": "integer"}
188 "name": "boundsList",
190 "description": "List of bounds information.",
194 "x": {"type": "integer"},
195 "y": {"type": "integer"},
196 "w": {"type": "integer"},
197 "h": {"type": "integer"}
203 "name": "onDictionaryLoaded",
205 "description": "Fired when the custom spelling dictionary is loaded.",
208 "name": "onDictionaryChanged",
210 "description": "Fired when words are added or removed from the custom spelling dictionary.",
215 "description": "List of added words.",
222 "description": "List of removed words.",