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

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

Issue 10818013: Native Messaging! (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 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/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": [

Powered by Google App Engine
This is Rietveld 408576698