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 "keyName": {"type": "string", "description": "Name of the key, which is independent of modifier state."},
22 "modifiers": {"type": "integer", "optional": true, "description": "Flag for modifiers that are active. None = 0, Shift = 2, Control = 4, Alt = 8."}
30 "description": "Inserts text into the currently focused text field.",
34 "description": "The text that will be inserted."
39 "description": "Called when the insertion is completed.",
47 "description": "Move cursor on the current focused textfield by swipe.",
49 { "name": "swipe_direction",
51 "discription": "The direction of the cursor movement."
53 { "name": "modifier_flags",
55 "description": "Bitmask representing the state of the system modifier keys."
60 "decription": "called when the swipe movement is completed.",
66 "name": "sendKeyEvent",
68 "description": "Sends a fabricated key event to the focused input field.",
71 "$ref": "VirtualKeyboardEvent",
77 "description": "Called after processing the event.",
83 "name": "hideKeyboard",
85 "description": "Hides the virtual keyboard.",
90 "description": "Called when the keyboard is hidden.",
96 "name": "lockKeyboard",
98 "description": "Sets the lock state of the virtual keyboard. A locked keyboard remains visible even after a text area loses input focus.",
107 "name": "keyboardLoaded",
109 "description": "Inform the system that the keyboard has loaded.",
111 { "type": "function",
114 "description": "Called when load acknowledgement is complete.",
120 "name": "getKeyboardConfig",
122 "description": "Gets the virtual keyboard configuration.",
128 "description": "Called when querying virtual keyboard configuration is complete.",
137 "description": "Virtual keyboard layout string."
141 "description": "True if accessbility virtual keyboard is enabled."
152 "name": "onTextInputBoxFocused",
154 "description": "This event is sent when focus enters a text input box.",
159 "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.",
163 "description": "The value of type attribute of the focused text input box.",
164 "enum": ["text", "number", "password", "date", "url", "tel", "email"]