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 "platforms": ["chromeos"], | 9 "platforms": ["chromeos"], |
10 "types": [ | 10 "types": [ |
11 { | 11 { |
12 "id": "KeyboardEvent", | 12 "id": "KeyboardEvent", |
13 "type": "object", | 13 "type": "object", |
14 "description": "See http://www.w3.org/TR/DOM-Level-3-Events/#events-Keyb
oardEvent", | 14 "description": "See http://www.w3.org/TR/DOM-Level-3-Events/#events-Keyb
oardEvent", |
15 "properties": { | 15 "properties": { |
16 "type": {"type": "string", "description": "One of keyup or keydown.",
"enum": ["keyup", "keydown"]}, | 16 "type": {"type": "string", "description": "One of keyup or keydown.",
"enum": ["keyup", "keydown"]}, |
17 "requestId": {"type": "string", "description": "The ID of the request.
"}, | 17 "requestId": {"type": "string", "description": "The ID of the request.
"}, |
18 "extensionId": {"type": "string", "optional": true, "description": "Th
e extension ID of the sender of this keyevent."}, | 18 "extensionId": {"type": "string", "optional": true, "description": "Th
e extension ID of the sender of this keyevent."}, |
19 "key": {"type": "string", "description": "Value of the key being press
ed"}, | 19 "key": {"type": "string", "description": "Value of the key being press
ed"}, |
20 "code": {"type": "string", "description": "Value of the physical key b
eing pressed. The value is not affected by current keyboard layout or modifier s
tate."}, | 20 "code": {"type": "string", "description": "Value of the physical key b
eing pressed. The value is not affected by current keyboard layout or modifier s
tate."}, |
| 21 "keyCode": {"type": "integer", "optional": true, "description": "The d
eprecated HTML keyCode, which is system- and implementation-dependent numerical
code signifying the unmodified identifier associated with the key pressed."}, |
21 "altKey": {"type": "boolean", "optional": true, "description": "Whethe
r or not the ALT key is pressed."}, | 22 "altKey": {"type": "boolean", "optional": true, "description": "Whethe
r or not the ALT key is pressed."}, |
22 "ctrlKey": {"type": "boolean", "optional": true, "description": "Wheth
er or not the CTRL key is pressed."}, | 23 "ctrlKey": {"type": "boolean", "optional": true, "description": "Wheth
er or not the CTRL key is pressed."}, |
23 "shiftKey": {"type": "boolean", "optional": true, "description": "Whet
her or not the SHIFT key is pressed."}, | 24 "shiftKey": {"type": "boolean", "optional": true, "description": "Whet
her or not the SHIFT key is pressed."}, |
24 "capsLock": {"type": "boolean", "optional": true, "description": "Whet
her or not the CAPS_LOCK is enabled."} | 25 "capsLock": {"type": "boolean", "optional": true, "description": "Whet
her or not the CAPS_LOCK is enabled."} |
25 } | 26 } |
26 }, | 27 }, |
27 { | 28 { |
28 "id": "InputContext", | 29 "id": "InputContext", |
29 "type": "object", | 30 "type": "object", |
30 "description": "Describes an input Context", | 31 "description": "Describes an input Context", |
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
666 { | 667 { |
667 "type": "string", | 668 "type": "string", |
668 "name": "engineID", | 669 "name": "engineID", |
669 "description": "ID of the engine receiving the event" | 670 "description": "ID of the engine receiving the event" |
670 } | 671 } |
671 ] | 672 ] |
672 } | 673 } |
673 ] | 674 ] |
674 } | 675 } |
675 ] | 676 ] |
OLD | NEW |