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": "extensions/browser/api/virtual_keyboard_private/virtual_keyboard_private_api.h"
11 "platforms": ["chromeos"],
12 "description": "none",
15 "id": "VirtualKeyboardEventType",
17 "description": "One of keyup or keydown.",
18 "enum": ["keyup", "keydown"]
21 "id": "VirtualKeyboardEvent",
24 "type": {"$ref": "VirtualKeyboardEventType"},
25 "charValue": {"type": "integer", "description": "Unicode value of the key."},
26 "keyCode": {"type": "integer", "description": "Virtual key code, which is independent of the keyboard layout or modifier state."},
27 "keyName": {"type": "string", "description": "Name of the key, which is independent of modifier state."},
28 "modifiers": {"type": "integer", "optional": true, "description": "Flag for modifiers that are active. None = 0, Shift = 2, Control = 4, Alt = 8."}
34 "enum": [ "FULL_WIDTH", "FLOATING" ],
35 "description": "The value of the virtual keyboard mode to set to."
38 "id": "KeyboardState",
40 "enum": [ "ENABLED", "DISABLED", "AUTO"],
41 "description": "The value of the virtual keyboard state to change to."
44 "id": "OnTextInputBoxFocusedType",
46 "description": "The value of type attribute of the focused text input box.",
47 "enum": ["text", "number", "password", "date", "url", "tel", "email"]
53 "left": {"type": "integer", "description": "The position of the virtual keyboard window's left edge."},
54 "top": {"type": "integer", "description": "The position of the virtual keyboard window's top edge."},
55 "width": {"type": "integer", "description": "The width of the virtual keyboard window."},
56 "height": {"type": "integer", "description": "The height of the virtual keyboard window."}
64 "description": "Inserts text into the currently focused text field.",
68 "description": "The text that will be inserted."
73 "description": "Called when the insertion is completed.",
79 "name": "sendKeyEvent",
81 "description": "Sends a fabricated key event to the focused input field.",
84 "$ref": "VirtualKeyboardEvent",
90 "description": "Called after processing the event.",
96 "name": "hideKeyboard",
98 "description": "Hides the virtual keyboard.",
100 { "type": "function",
103 "description": "Called when the keyboard is hidden.",
109 "name": "setHotrodKeyboard",
111 "description": "Sets the state of the hotrod virtual keyboard. This API should only be used by hotrod.",
120 "name": "lockKeyboard",
122 "description": "Sets the lock state of the virtual keyboard. A locked keyboard remains visible even after a text area loses input focus.",
131 "name": "keyboardLoaded",
133 "description": "Inform the system that the keyboard has loaded.",
135 { "type": "function",
138 "description": "Called when load acknowledgement is complete.",
144 "name": "getKeyboardConfig",
146 "description": "Gets the virtual keyboard configuration.",
152 "description": "Called when querying virtual keyboard configuration is complete.",
161 "description": "Virtual keyboard layout string."
165 "description": "True if accessibility virtual keyboard is enabled."
169 "items": { "type": "string" },
170 "description": "List of experimental feature flags."
179 "name": "openSettings",
181 "description": "Opens chrome://settings/languages page.",
188 "description": "Sets the virtual keyboard mode.",
191 "$ref": "KeyboardMode",
193 "description": "The value of the virtual keyboard mode to set to."
198 "name": "setKeyboardState",
200 "description": "Requests the virtual keyboard to change state.",
203 "$ref": "KeyboardState",
205 "description": "The value of the virtual keyboard state to change to."
213 "name": "onTextInputBoxFocused",
215 "description": "This event is sent when focus enters a text input box.",
220 "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.",
223 "$ref": "OnTextInputBoxFocusedType",
224 "description": "The value of type attribute of the focused text input box."
231 "name": "onBoundsChanged",
233 "description": "This event is sent when virtual keyboard bounds changed and overscroll/resize is enabled.",
237 "description": "The virtual keyboard bounds",