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

Unified Diff: chrome/common/extensions/api/input_method_private.json

Issue 305533002: Adds IME switching private APIs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/api/input_method_private.json
diff --git a/chrome/common/extensions/api/input_method_private.json b/chrome/common/extensions/api/input_method_private.json
index 9b40b62abb9801dbdee2bf208a1378f8fe3815b3..0d11f640cf0217bdce0dbc673c0f31a476965f8d 100644
--- a/chrome/common/extensions/api/input_method_private.json
+++ b/chrome/common/extensions/api/input_method_private.json
@@ -9,7 +9,34 @@
"description": "none",
"functions": [
{
- "name": "get",
+ "name": "getInputMethods",
+ "type": "function",
+ "description": "Gets all whitelisted input methods.",
+ "parameters": [
+ {
+ "name": "callback",
+ "type": "function",
+ "optional": false,
+ "description": "Callback which is called with the input method objects.",
+ "parameters": [
+ {
+ "name": "inputMethods",
+ "type": "array",
+ "description": "Whitelisted input method objects.",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {"type": "string"},
+ "name": {"type": "string"},
+ "indicator": {"type": "string"}
+ }
+ }
+ }
+ ]
+ }
+ ]
+ }, {
+ "name": "getCurrentInputMethod",
"type": "function",
"description": "Gets the current input method.",
"parameters": [
@@ -28,10 +55,24 @@
}
]
}, {
- "name": "startIme",
+ "name": "setCurrentInputMethod",
"type": "function",
- "description": "Notify to input method engine to be ready to accept events.",
- "parameters" : []
+ "description": "Sets the current input method.",
+ "parameters": [
+ {
+ "name": "inputMethodId",
+ "type": "string",
+ "optional": false,
+ "description": "The input method ID to be set as current input method."
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "optional": true,
+ "description": "Callback which is called once the current input method is set or error occurs.",
+ "parameters": []
+ }
+ ]
}
],
"events": [

Powered by Google App Engine
This is Rietveld 408576698