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": "OnTextInputBoxFocusedType",
40 "description": "The value of type attribute of the focused text input box.",
41 "enum": ["text", "number", "password", "date", "url", "tel", "email"]
47 "left": {"type": "integer", "description": "The position of the virtual keyboard window's left edge."},
48 "top": {"type": "integer", "description": "The position of the virtual keyboard window's top edge."},
49 "width": {"type": "integer", "description": "The width of the virtual keyboard window."},
50 "height": {"type": "integer", "description": "The height of the virtual keyboard window."}
58 "description": "Inserts text into the currently focused text field.",
62 "description": "The text that will be inserted."
67 "description": "Called when the insertion is completed.",
73 "name": "sendKeyEvent",
75 "description": "Sends a fabricated key event to the focused input field.",
78 "$ref": "VirtualKeyboardEvent",
84 "description": "Called after processing the event.",
90 "name": "hideKeyboard",
92 "description": "Hides the virtual keyboard.",
97 "description": "Called when the keyboard is hidden.",
103 "name": "lockKeyboard",
105 "description": "Sets the lock state of the virtual keyboard. A locked keyboard remains visible even after a text area loses input focus.",
114 "name": "keyboardLoaded",
116 "description": "Inform the system that the keyboard has loaded.",
118 { "type": "function",
121 "description": "Called when load acknowledgement is complete.",
127 "name": "getKeyboardConfig",
129 "description": "Gets the virtual keyboard configuration.",
135 "description": "Called when querying virtual keyboard configuration is complete.",
144 "description": "Virtual keyboard layout string."
148 "description": "True if accessibility virtual keyboard is enabled."
152 "items": { "type": "string" },
153 "description": "List of experimental feature flags."
162 "name": "openSettings",
164 "description": "Opens chrome://settings/languages page.",
171 "description": "Sets the virtual keyboard mode.",
174 "$ref": "KeyboardMode",
176 "description": "The value of the virtual keyboard mode to set to."
184 "name": "onTextInputBoxFocused",
186 "description": "This event is sent when focus enters a text input box.",
191 "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.",
194 "$ref": "OnTextInputBoxFocusedType",
195 "description": "The value of type attribute of the focused text input box."
202 "name": "onBoundsChanged",
204 "description": "This event is sent when virtual keyboard bounds changed and overscroll/resize is enabled.",
208 "description": "The virtual keyboard bounds",