OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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": "virtualKeyboardPrivate", | 7 "namespace": "virtualKeyboardPrivate", |
8 "compiler_options": { | 8 "compiler_options": { |
9 "implemented_in": "extensions/browser/api/virtual_keyboard_private/virtual
_keyboard_private_api.h" | 9 "implemented_in": "extensions/browser/api/virtual_keyboard_private/virtual
_keyboard_private_api.h" |
10 }, | 10 }, |
(...skipping 21 matching lines...) Expand all Loading... |
32 "id": "KeyboardMode", | 32 "id": "KeyboardMode", |
33 "type": "string", | 33 "type": "string", |
34 "enum": [ "FULL_WIDTH", "FLOATING" ], | 34 "enum": [ "FULL_WIDTH", "FLOATING" ], |
35 "description": "The value of the virtual keyboard mode to set to." | 35 "description": "The value of the virtual keyboard mode to set to." |
36 }, | 36 }, |
37 { | 37 { |
38 "id": "OnTextInputBoxFocusedType", | 38 "id": "OnTextInputBoxFocusedType", |
39 "type": "string", | 39 "type": "string", |
40 "description": "The value of type attribute of the focused text input bo
x.", | 40 "description": "The value of type attribute of the focused text input bo
x.", |
41 "enum": ["text", "number", "password", "date", "url", "tel", "email"] | 41 "enum": ["text", "number", "password", "date", "url", "tel", "email"] |
42 } | 42 }, |
| 43 { |
| 44 "id": "Bounds", |
| 45 "type": "object", |
| 46 "properties": { |
| 47 "left": {"type": "integer", "description": "The position of the virtua
l 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 virtua
l keyboard window."} |
| 51 } |
| 52 } |
43 ], | 53 ], |
44 "functions": [ | 54 "functions": [ |
45 { | 55 { |
46 "name": "insertText", | 56 "name": "insertText", |
47 "type": "function", | 57 "type": "function", |
48 "description": "Inserts text into the currently focused text field.", | 58 "description": "Inserts text into the currently focused text field.", |
49 "parameters": [ | 59 "parameters": [ |
50 { "name": "text", | 60 { "name": "text", |
51 "type": "string", | 61 "type": "string", |
52 "description": "The text that will be inserted." | 62 "description": "The text that will be inserted." |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 "name": "context", | 211 "name": "context", |
202 "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 use
d by non-ime virtual keyboard only. Normal ime virtual keyboard should use chrom
e.input.ime.onFocus to get the more detailed InputContext.", | 212 "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 use
d by non-ime virtual keyboard only. Normal ime virtual keyboard should use chrom
e.input.ime.onFocus to get the more detailed InputContext.", |
203 "properties": { | 213 "properties": { |
204 "type": { | 214 "type": { |
205 "$ref": "OnTextInputBoxFocusedType", | 215 "$ref": "OnTextInputBoxFocusedType", |
206 "description": "The value of type attribute of the focused text
input box." | 216 "description": "The value of type attribute of the focused text
input box." |
207 } | 217 } |
208 } | 218 } |
209 } | 219 } |
210 ] | 220 ] |
| 221 }, |
| 222 { |
| 223 "name": "onBoundsChanged", |
| 224 "type": "function", |
| 225 "description": "This event is sent when virtual keyboard bounds changed
and overscroll/resize is enabled.", |
| 226 "parameters": [ |
| 227 { |
| 228 "name": "bounds", |
| 229 "description": "The virtual keyboard bounds", |
| 230 "$ref": "Bounds" |
| 231 } |
| 232 ] |
211 } | 233 } |
212 ] | 234 ] |
213 } | 235 } |
214 ] | 236 ] |
OLD | NEW |