Index: chrome/common/extensions/api/extension.json |
diff --git a/chrome/common/extensions/api/extension.json b/chrome/common/extensions/api/extension.json |
index 9efc4961a2e50b473408adf7be0ce8e3dddbe6a3..30850dd78ee814a6c7947df69606f901afbfedfc 100644 |
--- a/chrome/common/extensions/api/extension.json |
+++ b/chrome/common/extensions/api/extension.json |
@@ -237,6 +237,42 @@ |
"parameters": [ |
{"type": "string", "name": "data", "maxLength": 1024} |
] |
+ }, |
+ { |
+ "name": "sendNativeMessage", |
+ "type": "function", |
+ "description": "Send a single message to a registered native application.", |
+ "parameters": [ |
+ { |
+ "name": "registeredNativeApp", |
+ "description": "The name of the registered native app.", |
+ "type": "string" |
+ }, |
+ { |
+ "name": "data", |
+ "description": "The object that will be passed to the registered native app.", |
+ "type": "object", |
+ "additionalProperties": { |
+ "type": "any" |
+ } |
+ }, |
+ { |
+ "type": "function", |
+ "name": "callback", |
+ "optional": true, |
+ "description": "Called with the response from the native app.", |
+ "parameters": [ |
+ { |
+ "name": "nativeResponse", |
+ "type": "object", |
+ "description": "Whatever the native app responds with.", |
+ "additionalProperties": { |
+ "type": "any" |
+ } |
+ } |
+ ] |
+ } |
+ ] |
} |
], |
"events": [ |