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": "input.ime", | 7 "namespace": "input.ime", |
8 "description": "Use the <code>chrome.input.ime</code> API to implement a cus
tom IME for Chrome OS. This allows your extension to handle keystrokes, set the
composition, and manage the candidate window.", | 8 "description": "Use the <code>chrome.input.ime</code> API to implement a cus
tom IME for Chrome OS. This allows your extension to handle keystrokes, set the
composition, and manage the candidate window.", |
9 "types": [ | 9 "types": [ |
10 { | 10 { |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 "type": "boolean" | 262 "type": "boolean" |
263 } | 263 } |
264 ] | 264 ] |
265 } | 265 } |
266 ] | 266 ] |
267 }, | 267 }, |
268 { | 268 { |
269 "name": "sendKeyEvents", | 269 "name": "sendKeyEvents", |
270 "type": "function", | 270 "type": "function", |
271 "description": "Sends the key events. This function is expected to be u
sed by virtual keyboards. When key(s) on a virtual keyboard is pressed by a use
r, this function is used to propagate that event to the system.", | 271 "description": "Sends the key events. This function is expected to be u
sed by virtual keyboards. When key(s) on a virtual keyboard is pressed by a use
r, this function is used to propagate that event to the system.", |
272 "platforms": ["chromeos"], | 272 "platforms": ["chromeos", "win", "linux"], |
273 "parameters": [ | 273 "parameters": [ |
274 { | 274 { |
275 "name": "parameters", | 275 "name": "parameters", |
276 "type": "object", | 276 "type": "object", |
277 "properties": { | 277 "properties": { |
278 "contextID": { | 278 "contextID": { |
279 "description": "ID of the context where the key events will be s
ent, or zero to send key events to non-input field.", | 279 "description": "ID of the context where the key events will be s
ent, or zero to send key events to non-input field.", |
280 "type": "integer" | 280 "type": "integer" |
281 }, | 281 }, |
282 "keyData": { | 282 "keyData": { |
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
841 "type": "array", | 841 "type": "array", |
842 "name": "boundsList", | 842 "name": "boundsList", |
843 "description": "List of bounds information for each character on IME
composition text. If there's no composition text in the editor, this array cont
ains the bound information of the cursor.", | 843 "description": "List of bounds information for each character on IME
composition text. If there's no composition text in the editor, this array cont
ains the bound information of the cursor.", |
844 "items": { "$ref": "Bounds" } | 844 "items": { "$ref": "Bounds" } |
845 } | 845 } |
846 ] | 846 ] |
847 } | 847 } |
848 ] | 848 ] |
849 } | 849 } |
850 ] | 850 ] |
OLD | NEW |