home *** CD-ROM | disk | FTP | other *** search
- // Copyright (c) 2012 The Chromium Authors. All rights reserved.
- // Use of this source code is governed by a BSD-style license that can be
- // found in the LICENSE file.
-
- [
- {
- "namespace": "experimental.input.virtualKeyboard",
- "nodoc": true,
- "types": [],
- "functions": [
- {
- "name": "sendKeyboardEvent",
- "type": "function",
- "description": "Sends a keyboard event to Chrome.",
- "parameters": [
- { "type": "object",
- "name": "event",
- "properties": {
- "type": {
- "type": "string",
- "description": "One of 'keyup' or 'keydown'."
- },
- "keyIdentifier": {
- "type": "string",
- "description": "See http://www.w3.org/TR/2003/NOTE-DOM-Level-3-Events-20031107/keyset.html#KeySet-Set"
- },
- "altKey": {
- "type": "boolean",
- "optional": true,
- "description": "Whether or not the ALT key is pressed."
- },
- "ctrlKey": {
- "type": "boolean",
- "optional": true,
- "description": "Whether or not the CTRL key is pressed."
- },
- "metaKey": {
- "type": "boolean",
- "optional": true,
- "description": "Whether or not the META key is pressed."
- },
- "shiftKey": {
- "type": "boolean",
- "optional": true,
- "description": "Whether or not the SHIFT key is pressed."
- }
- },
- "description": "The keyboard event to be sent."
- },
- { "type": "function",
- "name": "callback",
- "optional": true,
- "description": "This function is called when the event processing is completed.",
- "parameters": []
- }
- ]
- }
- ]
- }
- ]
-