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
3 // found in the LICENSE file.
7 "namespace": "virtualKeyboardPrivate",
8 "platforms": ["chromeos"],
12 "id": "VirtualKeyboardEvent",
15 "type": {"type": "string", "description": "One of keyup or keydown.", "enum": ["keyup", "keydown"]},
16 "charValue": {"type": "integer", "description": "Unicode value of the key."},
17 "keyCode": {"type": "integer", "description": "Virtual key code, which is independent of the keyboard layout or modifier state."},
18 "shiftKey": {"type": "boolean", "optional": true, "description": "Whether or not the SHIFT key is pressed."}
26 "description": "Inserts text into the currently focused text field.",
30 "description": "The text that will be inserted."
35 "description": "Called when the insertion is completed.",
43 "description": "Move cursor on the current focused textfield by swipe.",
45 { "name": "swipe_direction",
47 "discription": "The direction of the cursor movement."
49 { "name": "modifier_flags",
51 "description": "Bitmask representing the state of the system modifier keys."
56 "decription": "called when the swipe movement is completed.",
62 "name": "sendKeyEvent",
64 "description": "Sends a fabricated key event to the focused input field.",
67 "$ref": "VirtualKeyboardEvent",
73 "description": "Called after processing the event.",