1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
[
{
"namespace": "inputMethodPrivate",
"platforms": ["chromeos"],
"description": "none",
"functions": [
{
"name": "getInputMethods",
"type": "function",
"description": "Gets all whitelisted input methods.",
"parameters": [
{
"name": "callback",
"type": "function",
"optional": false,
"description": "Callback which is called with the input method objects.",
"parameters": [
{
"name": "inputMethods",
"type": "array",
"description": "Whitelisted input method objects.",
"items": {
"type": "object",
"properties": {
"id": {"type": "string"},
"name": {"type": "string"},
"indicator": {"type": "string"}
}
}
}
]
}
]
}, {
"name": "getCurrentInputMethod",
"type": "function",
"description": "Gets the current input method.",
"parameters": [
{
"name": "callback",
"type": "function",
"optional": false,
"description": "Callback which is called with the current input method.",
"parameters": [
{
"name": "inputMethodId",
"type": "string",
"description": "Current input method."
}
]
}
]
}, {
"name": "setCurrentInputMethod",
"type": "function",
"description": "Sets the current input method.",
"parameters": [
{
"name": "inputMethodId",
"type": "string",
"optional": false,
"description": "The input method ID to be set as current input method."
},
{
"name": "callback",
"type": "function",
"optional": true,
"description": "Callback which is called once the current input method is set or error occurs.",
"parameters": []
}
]
}
],
"events": [
{
"name": "onChanged",
"type": "function",
"description": "Fired when the input method is changed.",
"parameters": [
{
"name": "newInputMethodId",
"type": "string",
"description": "New input method which is being used."
}
]
}
]
}
]
|