summaryrefslogtreecommitdiffstats
path: root/extensions/common
diff options
context:
space:
mode:
authorRaheem Adam <rsadam@chromium.org>2015-09-04 15:43:38 -0400
committerRaheem Adam <rsadam@chromium.org>2015-09-04 19:44:57 +0000
commite1cada9e53009d47879511e4eded10cb11b354c5 (patch)
tree4386902dded2a6e0f85d5d64b3a3372e7211effa /extensions/common
parent4fe41984be0ef05586a8c00b578071ce2cffdd16 (diff)
downloadchromium_src-e1cada9e53009d47879511e4eded10cb11b354c5.zip
chromium_src-e1cada9e53009d47879511e4eded10cb11b354c5.tar.gz
chromium_src-e1cada9e53009d47879511e4eded10cb11b354c5.tar.bz2
setKeyboardState API
Allows javascript to trigger instantiation of the virtual keyboard. BUG=522203 TBR=bshe,rockot,sky,isherman Review URL: https://codereview.chromium.org/1289813008 Cr-Commit-Position: refs/heads/master@{#345083} (cherry picked from commit f796de60c07f2ba391036a2b52d2c37050f19435) Review URL: https://codereview.chromium.org/1310863006 . Cr-Commit-Position: refs/branch-heads/2490@{#169} Cr-Branched-From: 7790a3535f2a81a03685eca31a32cf69ae0c114f-refs/heads/master@{#344925}
Diffstat (limited to 'extensions/common')
-rw-r--r--extensions/common/api/virtual_keyboard_private.json18
1 files changed, 18 insertions, 0 deletions
diff --git a/extensions/common/api/virtual_keyboard_private.json b/extensions/common/api/virtual_keyboard_private.json
index 105a126..4f18261 100644
--- a/extensions/common/api/virtual_keyboard_private.json
+++ b/extensions/common/api/virtual_keyboard_private.json
@@ -35,6 +35,12 @@
"description": "The value of the virtual keyboard mode to set to."
},
{
+ "id": "KeyboardState",
+ "type": "string",
+ "enum": [ "ENABLED", "DISABLED", "AUTO"],
+ "description": "The value of the virtual keyboard state to change to."
+ },
+ {
"id": "OnTextInputBoxFocusedType",
"type": "string",
"description": "The value of type attribute of the focused text input box.",
@@ -176,6 +182,18 @@
"description": "The value of the virtual keyboard mode to set to."
}
]
+ },
+ {
+ "name": "setKeyboardState",
+ "type": "function",
+ "description": "Requests the virtual keyboard to change state.",
+ "parameters": [
+ {
+ "$ref": "KeyboardState",
+ "name": "state",
+ "description": "The value of the virtual keyboard state to change to."
+ }
+ ]
}
],