Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9813)

Unified Diff: chrome/common/extensions/api/experimental_input_virtual_keyboard.json

Issue 16972006: Insert text directly from the virtual keyboard. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix include Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/data/extensions/api_test/input/manifest.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/experimental_input_virtual_keyboard.json
diff --git a/chrome/common/extensions/api/experimental_input_virtual_keyboard.json b/chrome/common/extensions/api/experimental_input_virtual_keyboard.json
index 2aea6ca501d2ccb855917ce71e53d0e747247b66..fc8f1b0342e57a506e9186139c7bf13ccb7ff39d 100644
--- a/chrome/common/extensions/api/experimental_input_virtual_keyboard.json
+++ b/chrome/common/extensions/api/experimental_input_virtual_keyboard.json
@@ -9,48 +9,18 @@
"types": [],
"functions": [
{
- "name": "sendKeyboardEvent",
+ "name": "insertText",
"type": "function",
- "description": "Sends a keyboard event to Chrome.",
+ "description": "Inserts text into the currently focused text field.",
"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."
+ { "name": "text",
+ "type": "string",
+ "description": "The text that will be inserted."
},
{ "type": "function",
"name": "callback",
"optional": true,
- "description": "This function is called when the event processing is completed.",
+ "description": "Called when the insertion is completed.",
"parameters": []
}
]
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/data/extensions/api_test/input/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698