diff options
author | cduvall@chromium.org <cduvall@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-12 02:22:21 +0000 |
---|---|---|
committer | cduvall@chromium.org <cduvall@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-12 02:22:21 +0000 |
commit | 15a28fd05ef7f31a705078b35539cc62a4cf603b (patch) | |
tree | 3e2f777c5a7c1492f73b808b5545894f4bf51e1a /chrome/common/extensions/api/experimental_input_virtual_keyboard.json | |
parent | 797510b8b3b3e68457476680ea1fdb40eb23ab45 (diff) | |
download | chromium_src-15a28fd05ef7f31a705078b35539cc62a4cf603b.zip chromium_src-15a28fd05ef7f31a705078b35539cc62a4cf603b.tar.gz chromium_src-15a28fd05ef7f31a705078b35539cc62a4cf603b.tar.bz2 |
Files generated by the JSON schema compiler are named incorrectly
Files are now named like "file_name.h" instead of "fileName.h" or
"file.name.h", and all the JSON files have been renamed.
BUG=125669
TEST=All previous tests for the renamed files
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=135077
Review URL: https://chromiumcodereview.appspot.com/10272021
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136747 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/api/experimental_input_virtual_keyboard.json')
-rw-r--r-- | chrome/common/extensions/api/experimental_input_virtual_keyboard.json | 139 |
1 files changed, 139 insertions, 0 deletions
diff --git a/chrome/common/extensions/api/experimental_input_virtual_keyboard.json b/chrome/common/extensions/api/experimental_input_virtual_keyboard.json new file mode 100644 index 0000000..6845d8f --- /dev/null +++ b/chrome/common/extensions/api/experimental_input_virtual_keyboard.json @@ -0,0 +1,139 @@ +// 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": [] + } + ] + }, + { + "name": "hideKeyboard", + "type": "function", + "description": "Hides the keyboard UI.", + "parameters": [ + { "type": "function", + "name": "callback", + "optional": true, + "description": "This function is called when the event processing is completed.", + "parameters": [] + } + ] + }, + { + "name": "setKeyboardHeight", + "type": "function", + "description": "Sets the height of the keyboard UI.", + "parameters": [ + { "type": "integer", + "name": "height", + "minimum": 0, + "optional": false, + "description": "The height of the keyboard UI." + }, + { "type": "function", + "name": "callback", + "optional": true, + "description": "This function is called when the event processing is completed but the resizeing may be not finished.", + "parameters": [] + } + ] + }, + { + "name": "sendHandwritingStroke", + "type": "function", + "description": "Sends a handwriting event to Chrome.", + "parameters": [ + { + "name": "stroke", + "type": "array", + "items": { + "type": "object", + "properties": { + "x": {"type": "number", "minimum": 0, "maximum": 1}, + "y": {"type": "number", "minimum": 0, "maximum": 1} + } + } + } + ] + }, + { + "name": "cancelHandwritingStrokes", + "type": "function", + "description": "Clears last N handwriting strokes.", + "parameters": [ + { + "name": "strokeCount", + "optional": true, + "description": "The number of strokes to be removed. Pass 0 to remove all strokes. If omitted, removes all.", + "type": "integer", + "minimum": 0 + } + ] + } + ], + "events": [ + { + "name": "onTextInputTypeChanged", + "type": "function", + "description": "This event is sent to the virtual keyboard when the text input type is changed.", + "parameters": [ + { + "type": "string", + "name": "type", + "enum": ["none", "text", "password", "search", "email", "number", "tel", "url"], + "description": "Type of the current focused input field." + } + ] + } + ] + } +] |