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

Side by Side Diff: components/arc/common/intent_helper.mojom

Issue 2078683002: Add handler and mojo interface to accept android intent filters. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove the struct fields that aren't being used yet. Created 4 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Next MinVersion: 9 5 // Next MinVersion: 10
6 6
7 module arc.mojom; 7 module arc.mojom;
8 8
9 import "scale_factor.mojom"; 9 import "scale_factor.mojom";
10 10
11 // Describes the type of action to invoke. 11 // Describes the type of action to invoke.
12 enum ActionType { 12 enum ActionType {
13 VIEW, 13 VIEW,
14 SEND, 14 SEND,
15 SEND_MULTIPLE, 15 SEND_MULTIPLE,
16 }; 16 };
17 17
18 [Extensible]
19 enum PatternType {
20 PATTERN_LITERAL,
21 PATTERN_PREFIX,
22 PATTERN_SIMPLE_GLOB,
23 };
24
25 struct PatternMatcher {
26 string pattern;
27 PatternType type;
28 };
29
30 struct AuthorityEntry {
31 string host;
32 int32 port;
33 };
dcheng 2016/06/24 22:32:35 Looks like lines 18-33 aren't used yet either.
zentaro 2016/06/27 16:15:37 Done.
34
35 struct IntentFilter {
36 array<string> actions;
37 array<string> categories;
38 array<string> data_schemes;
39 };
40
18 // Describes a package that can handle a URL. 41 // Describes a package that can handle a URL.
19 struct UrlHandlerInfo { 42 struct UrlHandlerInfo {
20 string name; 43 string name;
21 string package_name; 44 string package_name;
22 string activity_name; // A hint for retrieving the package's icon. 45 string activity_name; // A hint for retrieving the package's icon.
23 [MinVersion=4] ActionType action; 46 [MinVersion=4] ActionType action;
24 [MinVersion=6] bool is_preferred; 47 [MinVersion=6] bool is_preferred;
25 }; 48 };
26 49
27 // Describes an activity. 50 // Describes an activity.
(...skipping 10 matching lines...) Expand all
38 array<uint8> icon; // in BGRA8888 format 61 array<uint8> icon; // in BGRA8888 format
39 }; 62 };
40 63
41 // URL associated with its mime type. 64 // URL associated with its mime type.
42 struct UrlWithMimeType { 65 struct UrlWithMimeType {
43 string url; 66 string url;
44 string mime_type; 67 string mime_type;
45 }; 68 };
46 69
47 // Handles intents from ARC in Chrome. 70 // Handles intents from ARC in Chrome.
48 // Next method ID: 5 71 // Next method ID: 6
49 interface IntentHelperHost { 72 interface IntentHelperHost {
50 // Called when icons associated with the package are no longer up to date. 73 // Called when icons associated with the package are no longer up to date.
51 [MinVersion=3] OnIconInvalidated@1(string package_name); 74 [MinVersion=3] OnIconInvalidated@1(string package_name);
52 75
76 // Called when intent filters are updated. Either on startup or when
77 // apps are installed or uninstalled.
78 [MinVersion=9] OnIntentFiltersUpdated@5(array<IntentFilter> intent_filters);
79
53 // Opens the downloads directory in the Chrome OS file manager. 80 // Opens the downloads directory in the Chrome OS file manager.
54 [MinVersion=5] OnOpenDownloads@2(); 81 [MinVersion=5] OnOpenDownloads@2();
55 82
56 // Opens the url with Chrome for Chrome OS. 83 // Opens the url with Chrome for Chrome OS.
57 OnOpenUrl@0(string url); 84 OnOpenUrl@0(string url);
58 85
59 // Opens the wallpaper picker dialog. 86 // Opens the wallpaper picker dialog.
60 [MinVersion=6] OpenWallpaperPicker@3(); 87 [MinVersion=6] OpenWallpaperPicker@3();
61 88
62 // Sets an image as the wallpaper. 89 // Sets an image as the wallpaper.
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // specified. Data can be sent as extras by including a JSON map string which 136 // specified. Data can be sent as extras by including a JSON map string which
110 // will be automatically converted to a bundle accessible by the receiver. 137 // will be automatically converted to a bundle accessible by the receiver.
111 // 138 //
112 // Note: Broadcasts can only be sent to whitelisted packages. Packages can be 139 // Note: Broadcasts can only be sent to whitelisted packages. Packages can be
113 // added to the whitelist in ArcBridgeService.java in the Android source. 140 // added to the whitelist in ArcBridgeService.java in the Android source.
114 [MinVersion=1] SendBroadcast@1(string action, 141 [MinVersion=1] SendBroadcast@1(string action,
115 string package_name, 142 string package_name,
116 string cls, 143 string cls,
117 string extras); 144 string extras);
118 }; 145 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698