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": [ |
(...skipping 12 matching lines...) Expand all Loading... |
23 "shiftKey": {"type": "boolean", "optional": true, "description": "Whet
her or not the SHIFT key is pressed."}, | 23 "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."} | 24 "capsLock": {"type": "boolean", "optional": true, "description": "Whet
her or not the CAPS_LOCK is enabled."} |
25 } | 25 } |
26 }, | 26 }, |
27 { | 27 { |
28 "id": "InputContext", | 28 "id": "InputContext", |
29 "type": "object", | 29 "type": "object", |
30 "description": "Describes an input Context", | 30 "description": "Describes an input Context", |
31 "properties": { | 31 "properties": { |
32 "contextID": {"type": "integer", "description": "This is used to speci
fy targets of text field operations. This ID becomes invalid as soon as onBlur
is called."}, | 32 "contextID": {"type": "integer", "description": "This is used to speci
fy targets of text field operations. This ID becomes invalid as soon as onBlur
is called."}, |
33 "type": {"type": "string", "description": "Type of value this text fie
ld edits, (Text, Number, URL, etc)", "enum": ["text", "search", "tel", "url", "e
mail", "number"]} | 33 "type": {"type": "string", "description": "Type of value this text fie
ld edits, (Text, Number, URL, etc)", "enum": ["text", "search", "tel", "url", "e
mail", "number", "password"]} |
34 } | 34 } |
35 }, | 35 }, |
36 { | 36 { |
37 "id": "MenuItem", | 37 "id": "MenuItem", |
38 "type": "object", | 38 "type": "object", |
39 "description": "A menu item used by an input method to interact with the
user from the language menu.", | 39 "description": "A menu item used by an input method to interact with the
user from the language menu.", |
40 "properties": { | 40 "properties": { |
41 "id": {"type": "string", "description": "String that will be passed to
callbacks referencing this MenuItem."}, | 41 "id": {"type": "string", "description": "String that will be passed to
callbacks referencing this MenuItem."}, |
42 "label": {"type": "string", "optional": true, "description": "Text dis
played in the menu for this item."}, | 42 "label": {"type": "string", "optional": true, "description": "Text dis
played in the menu for this item."}, |
43 "style": { | 43 "style": { |
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
666 { | 666 { |
667 "type": "string", | 667 "type": "string", |
668 "name": "engineID", | 668 "name": "engineID", |
669 "description": "ID of the engine receiving the event" | 669 "description": "ID of the engine receiving the event" |
670 } | 670 } |
671 ] | 671 ] |
672 } | 672 } |
673 ] | 673 ] |
674 } | 674 } |
675 ] | 675 ] |
OLD | NEW |