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

Side by Side Diff: chrome/common/extensions/api/experimental_input_virtual_keyboard.json

Issue 20145004: Switch from text insertion to key press and release events on the virtual k… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Formatting. Created 7 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 [ 5 [
6 { 6 {
7 "namespace": "experimental.input.virtualKeyboard", 7 "namespace": "experimental.input.virtualKeyboard",
8 "description": "none", 8 "description": "none",
9 "functions": [ 9 "functions": [
10 { 10 {
11 "name": "insertText", 11 "name": "insertText",
12 "type": "function", 12 "type": "function",
13 "description": "Inserts text into the currently focused text field.", 13 "description": "Inserts text into the currently focused text field.",
14 "parameters": [ 14 "parameters": [
15 { "name": "text", 15 { "name": "text",
16 "type": "string", 16 "type": "string",
17 "description": "The text that will be inserted." 17 "description": "The text that will be inserted."
18 }, 18 },
19 { "type": "function", 19 { "type": "function",
20 "name": "callback", 20 "name": "callback",
21 "optional": true, 21 "optional": true,
22 "description": "Called when the insertion is completed.", 22 "description": "Called when the insertion is completed.",
23 "parameters": [] 23 "parameters": []
24 } 24 }
25 ] 25 ]
26 },
27 {
28 "name": "dispatchKeyEvent",
29 "type": "function",
30 "description": "Dispatches a fabricated key event to the focused input f ield.",
31 "parameters": [
32 { "name": "type",
bshe 2013/07/25 15:33:05 probably add a enum field here like this (https://
kevers 2013/07/26 00:53:30 Added enum.
33 "type": "string",
34 "description": "Type type of key event: keyPressed or keyReleased."
35 },
36 { "name": "charCode",
37 "type": "integer",
38 "description": "Unicode value of the character."
39 },
40 { "name": "callback",
41 "type": "function",
42 "optional": true,
43 "description": "Called post event dispatch.",
44 "parameters": []
45 }
46 ]
26 } 47 }
27 ] 48 ]
28 } 49 }
29 ] 50 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698