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

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: about to submit Created 8 years, 3 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
« no previous file with comments | « chrome/chrome_browser_extensions.gypi ('k') | chrome/renderer/extensions/app_runtime_custom_bindings.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
+ };
};
« no previous file with comments | « chrome/chrome_browser_extensions.gypi ('k') | chrome/renderer/extensions/app_runtime_custom_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698