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

Unified Diff: components/arc/common/intent_helper.mojom

Issue 1760773004: Add "Open with <ARC-app-name>" items to the context menu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address dcheng's comment Created 4 years, 8 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 | « components/arc/BUILD.gn ('k') | components/arc/intent_helper/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/common/intent_helper.mojom
diff --git a/components/arc/common/intent_helper.mojom b/components/arc/common/intent_helper.mojom
index 05db0723c2737279ea8848d1dd5d875a02a624f0..110f172b850a74c074c55a1cf856426ea592fa5b 100644
--- a/components/arc/common/intent_helper.mojom
+++ b/components/arc/common/intent_helper.mojom
@@ -4,6 +4,13 @@
module arc.mojom;
+// Describes a package that can handle a URL.
+struct UrlHandlerInfo {
+ string name;
+ string package_name;
+ string activity_name; // A hint for retrieving the package's icon.
+};
+
// Handles intents from ARC in Chrome.
interface IntentHelperHost {
// Opens the url with Chrome for Chrome OS.
@@ -12,9 +19,17 @@ interface IntentHelperHost {
// Sends intents to ARC on behalf of Chrome.
interface IntentHelperInstance {
+ // Handles the URL by sending an ACTION_VIEW intent to the package. The
+ // most suitable activity for the URL within the package will be started.
+ [MinVersion=2] HandleUrl@2(string url, string package_name);
+
// Establishes full-duplex communication with the host.
Init@0(IntentHelperHost host_ptr);
+ // Requests a list of packages that can handle the URL.
+ [MinVersion=2] RequestUrlHandlerList@3(string url)
+ => (array<UrlHandlerInfo> handlers);
+
// Send an Android broadcast message to the Android package and class
// specified. Data can be sent as extras by including a JSON map string which
// will be automatically converted to a bundle accessible by the receiver.
« no previous file with comments | « components/arc/BUILD.gn ('k') | components/arc/intent_helper/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698