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"},
27 "isNewMDInputViewEnabled": {"type": "boolean"},
28 "isVoiceInputEnabled": {"type": "boolean"}
35 "name": "getInputMethods",
37 "description": "Gets all whitelisted input methods.",
43 "description": "Callback which is called with the input method objects.",
46 "name": "inputMethods",
48 "description": "Whitelisted input method objects.",
52 "id": {"type": "string"},
53 "name": {"type": "string"},
54 "indicator": {"type": "string"}
62 "name": "getCurrentInputMethod",
64 "description": "Gets the current input method.",
70 "description": "Callback which is called with the current input method.",
73 "name": "inputMethodId",
75 "description": "Current input method."
81 "name": "setCurrentInputMethod",
83 "description": "Sets the current input method.",
86 "name": "inputMethodId",
89 "description": "The input method ID to be set as current input method."
95 "description": "Callback which is called once the current input method is set. If unsuccessful $(ref:runtime.lastError) is set.",
100 "name": "fetchAllDictionaryWords",
102 "description": "Fetches a list of all the words currently in the dictionary.",
108 "description": "Callback which is called once the list of dictionary words are ready.",
113 "description": "List of dictionary words.",
122 "name": "addWordToDictionary",
124 "description": "Adds a single word to be stored in the dictionary.",
130 "description": "A new word to add to the dictionary."
136 "description": "Callback which is called once the word is added. If unsuccessful $(ref:runtime.lastError) is set.",
146 "description": "Fired when the input method is changed.",
149 "name": "newInputMethodId",
151 "description": "New input method which is being used."
155 "name": "onCompositionBoundsChanged",
157 "description": "Fired when the composition bounds or cursor bounds are changed.",
162 "description": "List of bounds information.",
166 "x": {"type": "integer"},
167 "y": {"type": "integer"},
168 "w": {"type": "integer"},
169 "h": {"type": "integer"}
175 "name": "onDictionaryLoaded",
177 "description": "Fired when the custom spelling dictionary is loaded.",
180 "name": "onDictionaryChanged",
182 "description": "Fired when words are added or removed from the custom spelling dictionary.",
187 "description": "List of added words.",
194 "description": "List of removed words.",