OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 { | 6 { |
7 "namespace": "inputMethodPrivate", | 7 "namespace": "inputMethodPrivate", |
8 "compiler_options": { | 8 "compiler_options": { |
9 "implemented_in": "chrome/browser/chromeos/extensions/input_method_api.h" | 9 "implemented_in": "chrome/browser/chromeos/extensions/input_method_api.h" |
10 }, | 10 }, |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 "parameters": [ | 151 "parameters": [ |
152 { | 152 { |
153 "name": "enabled", | 153 "name": "enabled", |
154 "type": "boolean", | 154 "type": "boolean", |
155 "optional": false, | 155 "optional": false, |
156 "description": "The result of whether enabled." | 156 "description": "The result of whether enabled." |
157 } | 157 } |
158 ] | 158 ] |
159 } | 159 } |
160 ] | 160 ] |
| 161 }, { |
| 162 "name": "setXkbLayout", |
| 163 "type": "function", |
| 164 "description": "Sets the XKB layout for the given input method.", |
| 165 "parameters": [ |
| 166 { |
| 167 "name": "xkb_name", |
| 168 "type": "string", |
| 169 "description": "The XKB layout name." |
| 170 }, |
| 171 { |
| 172 "name": "callback", |
| 173 "type": "function", |
| 174 "optional": true, |
| 175 "description": "Callback which is called when the layout is set.", |
| 176 "parameters": [] |
| 177 } |
| 178 ] |
161 } | 179 } |
162 ], | 180 ], |
163 "events": [ | 181 "events": [ |
164 { | 182 { |
165 "name": "onChanged", | 183 "name": "onChanged", |
166 "type": "function", | 184 "type": "function", |
167 "description": "Fired when the input method is changed.", | 185 "description": "Fired when the input method is changed.", |
168 "parameters": [ | 186 "parameters": [ |
169 { | 187 { |
170 "name": "newInputMethodId", | 188 "name": "newInputMethodId", |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 "description": "List of removed words.", | 243 "description": "List of removed words.", |
226 "items": { | 244 "items": { |
227 "type": "string" | 245 "type": "string" |
228 } | 246 } |
229 } | 247 } |
230 ] | 248 ] |
231 } | 249 } |
232 ] | 250 ] |
233 } | 251 } |
234 ] | 252 ] |
OLD | NEW |