diff options
author | bshe <bshe@chromium.org> | 2015-05-15 12:38:04 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-15 19:39:04 +0000 |
commit | 2b52cba3b5a831c466311faba812d51ddd532ba5 (patch) | |
tree | 0dd3cb98471d86af81dcd609a9d272687a414887 /extensions | |
parent | 349704cec73c9b5a377827313860d178b062fb8c (diff) | |
download | chromium_src-2b52cba3b5a831c466311faba812d51ddd532ba5.zip chromium_src-2b52cba3b5a831c466311faba812d51ddd532ba5.tar.gz chromium_src-2b52cba3b5a831c466311faba812d51ddd532ba5.tar.bz2 |
Implements onBoundsChanged event in virtualKeyboardPrivate namespace
BUG=484699
Review URL: https://codereview.chromium.org/1128173003
Cr-Commit-Position: refs/heads/master@{#330169}
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/common/api/virtual_keyboard_private.json | 24 |
1 files changed, 23 insertions, 1 deletions
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" + } + ] } ] } |