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

Unified Diff: chrome/common/extensions/api/app_runtime.idl

Issue 10828172: Allow platform apps to respond to Web Intents (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Adds basic test Created 8 years, 4 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/app_runtime.idl
diff --git a/chrome/common/extensions/api/app_runtime.idl b/chrome/common/extensions/api/app_runtime.idl
index 53ed2fed2fbb41e7034a229726b06c473fb2f26a..c2d54c4353ba52f0151b4440f62bf7ab69dd19ff 100644
--- a/chrome/common/extensions/api/app_runtime.idl
+++ b/chrome/common/extensions/api/app_runtime.idl
@@ -33,4 +33,21 @@ namespace app.runtime {
static void onLaunched(optional LaunchData launchData);
};
+ dictionary IntentResponse {
+ // Identifies the intent.
+ long intentId;
+
+ // Was this intent successful? (i.e., postSuccess vs postFailure).
+ boolean success;
+
+ // Data associated with the intent response.
+ any data;
+ };
+
+ interface Functions {
+ // postIntentResponse is an internal method to responds to an intent
+ // previously sent to a packaged app. This is identified by intentId, and
+ // should only be invoked at most once per intentId.
+ [nodoc] static void postIntentResponse(IntentResponse intentResponse);
+ };
};

Powered by Google App Engine
This is Rietveld 408576698