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

Side by Side Diff: extensions/common/api/virtual_keyboard_private.json

Issue 1128173003: Implements onBoundsChanged event in virtualKeyboardPrivate namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review Created 5 years, 7 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
OLDNEW
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
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
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 ]
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/ash_keyboard_controller_proxy.cc ('k') | ui/keyboard/keyboard_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698