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",
9 "implemented_in": "chrome/browser/extensions/api/input/input.h"
11 "platforms": ["chromeos"],
12 "description": "none",
15 "id": "VirtualKeyboardEvent",
18 "type": {"type": "string", "description": "One of keyup or keydown.", "enum": ["keyup", "keydown"]},
19 "charValue": {"type": "integer", "description": "Unicode value of the key."},
20 "keyCode": {"type": "integer", "description": "Virtual key code, which is independent of the keyboard layout or modifier state."},
21 "modifiers": {"type": "integer", "optional": true, "description": "Flag for modifiers that are active. None = 0, Shift = 2, Control = 4, Alt = 8."}
29 "description": "Inserts text into the currently focused text field.",
33 "description": "The text that will be inserted."
38 "description": "Called when the insertion is completed.",
46 "description": "Move cursor on the current focused textfield by swipe.",
48 { "name": "swipe_direction",
50 "discription": "The direction of the cursor movement."
52 { "name": "modifier_flags",
54 "description": "Bitmask representing the state of the system modifier keys."
59 "decription": "called when the swipe movement is completed.",
65 "name": "sendKeyEvent",
67 "description": "Sends a fabricated key event to the focused input field.",
70 "$ref": "VirtualKeyboardEvent",
76 "description": "Called after processing the event.",
82 "name": "hideKeyboard",
84 "description": "Hides the virtual keyboard.",
89 "description": "Called when the keyboard is hidden.",
95 "name": "keyboardLoaded",
97 "description": "Inform the system that the keyboard has loaded.",
102 "description": "Called when load acknowledgement is complete.",
110 "name": "onTextInputBoxFocused",
112 "description": "This event is sent when focus enters a text input box.",
117 "description": "Describes the text input box that has acquired focus. Note only the type of text input box is passed. This API is intended to be used by non-ime virtual keyboard only. Normal ime virtual keyboard should use chrome.input.ime.onFocus to get the more detailed InputContext.",
121 "description": "The value of type attribute of the focused text input box.",
122 "enum": ["text", "number", "password", "date", "url", "tel", "email"]