OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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": "virtualKeyboardPrivate", | 7 "namespace": "virtualKeyboardPrivate", |
8 "platforms": ["chromeos"], | 8 "platforms": ["chromeos"], |
9 "description": "none", | 9 "description": "none", |
10 "types": [ | 10 "types": [ |
(...skipping 27 matching lines...) Expand all Loading... |
38 ] | 38 ] |
39 }, | 39 }, |
40 { | 40 { |
41 "name": "moveCursor", | 41 "name": "moveCursor", |
42 "type": "function", | 42 "type": "function", |
43 "description": "Move cursor on the current focused textfield by swipe.", | 43 "description": "Move cursor on the current focused textfield by swipe.", |
44 "parameters": [ | 44 "parameters": [ |
45 { "name": "swipe_direction", | 45 { "name": "swipe_direction", |
46 "type": "integer", | 46 "type": "integer", |
47 "discription": "The direction of the cursor movement." | 47 "discription": "The direction of the cursor movement." |
48 » }, | 48 }, |
49 { "name": "modifier_flags", | 49 { "name": "modifier_flags", |
50 "type": "integer", | 50 "type": "integer", |
51 "description": "Bitmask representing the state of the system modifie
r keys." | 51 "description": "Bitmask representing the state of the system modifie
r keys." |
52 }, | 52 }, |
53 { "type": "function", | 53 { "type": "function", |
54 "name": "callback", | 54 "name": "callback", |
55 "optional": true, | 55 "optional": true, |
56 "decription": "called when the swipe movement is completed.", | 56 "decription": "called when the swipe movement is completed.", |
57 "parameters": [] | 57 "parameters": [] |
58 } | 58 } |
59 » ] | 59 ] |
60 }, | 60 }, |
61 { | 61 { |
62 "name": "sendKeyEvent", | 62 "name": "sendKeyEvent", |
63 "type": "function", | 63 "type": "function", |
64 "description": "Sends a fabricated key event to the focused input field.
", | 64 "description": "Sends a fabricated key event to the focused input field.
", |
65 "parameters": [ | 65 "parameters": [ |
66 { "name": "keyEvent", | 66 { "name": "keyEvent", |
67 "$ref": "VirtualKeyboardEvent", | 67 "$ref": "VirtualKeyboardEvent", |
68 "description": "" | 68 "description": "" |
69 }, | 69 }, |
70 { "name": "callback", | 70 { "name": "callback", |
71 "type": "function", | 71 "type": "function", |
72 "optional": true, | 72 "optional": true, |
73 "description": "Called after processing the event.", | 73 "description": "Called after processing the event.", |
74 "parameters": [] | 74 "parameters": [] |
75 } | 75 } |
76 ] | 76 ] |
| 77 }, |
| 78 { |
| 79 "name": "hideKeyboard", |
| 80 "type": "function", |
| 81 "description": "Hides the virtual keyboard.", |
| 82 "parameters": [ |
| 83 { "type": "function", |
| 84 "name": "callback", |
| 85 "optional": true, |
| 86 "description": "Called when the keyboard is hidden.", |
| 87 "parameters": [] |
| 88 } |
| 89 ] |
77 } | 90 } |
78 ] | 91 ] |
79 } | 92 } |
80 ] | 93 ] |
OLD | NEW |