OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 [ | |
6 { | |
7 "namespace": "experimental.input.ui", | |
8 "nodoc": true, | |
9 "platforms": ["chromeos touch"], | |
10 "types": [], | |
11 "functions": [ | |
12 { | |
13 "name": "register", | |
14 "type": "function", | |
15 "description": "Registers the extension, so the extension can receive in
put method related events.", | |
16 "parameters": [ | |
17 { "type": "function", | |
18 "name": "callback", | |
19 "optional": true, | |
20 "description": "This function is called when the event processing is
completed.", | |
21 "parameters": [] | |
22 } | |
23 ] | |
24 }, | |
25 { | |
26 "name": "candidateClicked", | |
27 "type": "function", | |
28 "description": "Notifies input method engine that a candidate was clicke
d.", | |
29 "parameters": [ | |
30 { "type": "integer", | |
31 "name": "index" | |
32 }, | |
33 { "type": "integer", | |
34 "name": "button" | |
35 }, | |
36 { "type": "function", | |
37 "name": "callback", | |
38 "optional": true, | |
39 "description": "This function is called when the event processing is
completed.", | |
40 "parameters": [] | |
41 } | |
42 ] | |
43 }, | |
44 { | |
45 "name": "cursorUp", | |
46 "type": "function", | |
47 "description": "Notifies input method engine cursor up button was clicke
d.", | |
48 "parameters": [ | |
49 { "type": "function", | |
50 "name": "callback", | |
51 "optional": true, | |
52 "description": "This function is called when the event processing is
completed.", | |
53 "parameters": [] | |
54 } | |
55 ] | |
56 }, | |
57 { | |
58 "name": "cursorDown", | |
59 "type": "function", | |
60 "description": "Notifies input method engine cursor down button was clic
ked.", | |
61 "parameters": [ | |
62 { "type": "function", | |
63 "name": "callback", | |
64 "optional": true, | |
65 "description": "This function is called when the event processing is
completed.", | |
66 "parameters": [] | |
67 } | |
68 ] | |
69 }, | |
70 { | |
71 "name": "pageUp", | |
72 "type": "function", | |
73 "description": "Notifies input method engine page up button was clicked.
", | |
74 "parameters": [ | |
75 { "type": "function", | |
76 "name": "callback", | |
77 "optional": true, | |
78 "description": "This function is called when the event processing is
completed.", | |
79 "parameters": [] | |
80 } | |
81 ] | |
82 }, | |
83 { | |
84 "name": "pageDown", | |
85 "type": "function", | |
86 "description": "Notifies input method engine page down button was clicke
d.", | |
87 "parameters": [ | |
88 { "type": "function", | |
89 "name": "callback", | |
90 "optional": true, | |
91 "description": "This function is called when the event processing is
completed.", | |
92 "parameters": [] | |
93 } | |
94 ] | |
95 } | |
96 ], | |
97 "events": [ | |
98 { | |
99 "name": "onSetCursorLocation", | |
100 "type": "function", | |
101 "description": "Fired when input cursor location is changed.", | |
102 "parameters": [ | |
103 { "type": "integer", | |
104 "name": "x" | |
105 }, | |
106 { "type": "integer", | |
107 "name": "y" | |
108 }, | |
109 { "type": "integer", | |
110 "name": "width" | |
111 }, | |
112 { "type": "integer", | |
113 "name": "height" | |
114 } | |
115 ] | |
116 }, | |
117 { | |
118 "name": "onUpdateAuxiliaryText", | |
119 "type": "function", | |
120 "description": "Fired when auxiliary text is changed.", | |
121 "parameters": [ | |
122 { "type": "string", | |
123 "name": "text", | |
124 "description": "Auxiliary text." | |
125 } | |
126 ] | |
127 }, | |
128 { | |
129 "name": "onUpdateLookupTable", | |
130 "type": "function", | |
131 "description": "Fired when lookup table is updated.", | |
132 "parameters": [ | |
133 { "type": "object", | |
134 "name": "lookupTable", | |
135 "properties": { | |
136 "visible": { "type": "boolean" }, | |
137 "candidates": { "type": "array", "items": { "type": "string" } } | |
138 }, | |
139 "description": "Lookup table" | |
140 } | |
141 ] | |
142 } | |
143 | |
144 ] | |
145 } | |
146 ] | |
OLD | NEW |