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..f51439d0112194721dc9a86127be382b8dada960 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,6 +55,31 @@ |
} |
] |
}, { |
+ "name": "setCurrentInputMethod", |
+ "type": "function", |
+ "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": [ |
+ { |
+ "name": "success", |
+ "type": "boolean", |
not at google - send to devlin
2014/06/06 16:36:04
more idiomatic would be a void return value, but s
Shu Chen
2014/06/07 05:31:09
Done.
|
+ "description": "Whether the current input method is successfully set." |
+ } |
+ ] |
+ } |
+ ] |
+ }, { |
"name": "startIme", |
"type": "function", |
"description": "Notify to input method engine to be ready to accept events.", |