From 2b52cba3b5a831c466311faba812d51ddd532ba5 Mon Sep 17 00:00:00 2001 From: bshe Date: Fri, 15 May 2015 12:38:04 -0700 Subject: Implements onBoundsChanged event in virtualKeyboardPrivate namespace BUG=484699 Review URL: https://codereview.chromium.org/1128173003 Cr-Commit-Position: refs/heads/master@{#330169} --- .../common/api/virtual_keyboard_private.json | 24 +++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'extensions') diff --git a/extensions/common/api/virtual_keyboard_private.json b/extensions/common/api/virtual_keyboard_private.json index 71bdd0e..f8dd826 100644 --- a/extensions/common/api/virtual_keyboard_private.json +++ b/extensions/common/api/virtual_keyboard_private.json @@ -39,7 +39,17 @@ "type": "string", "description": "The value of type attribute of the focused text input box.", "enum": ["text", "number", "password", "date", "url", "tel", "email"] - } + }, + { + "id": "Bounds", + "type": "object", + "properties": { + "left": {"type": "integer", "description": "The position of the virtual keyboard window's left edge."}, + "top": {"type": "integer", "description": "The position of the virtual keyboard window's top edge."}, + "width": {"type": "integer", "description": "The width of the virtual keyboard window."}, + "height": {"type": "integer", "description": "The height of the virtual keyboard window."} + } + } ], "functions": [ { @@ -208,6 +218,18 @@ } } ] + }, + { + "name": "onBoundsChanged", + "type": "function", + "description": "This event is sent when virtual keyboard bounds changed and overscroll/resize is enabled.", + "parameters": [ + { + "name": "bounds", + "description": "The virtual keyboard bounds", + "$ref": "Bounds" + } + ] } ] } -- cgit v1.1