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

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

Issue 2505993005: Move FS related mojo methods to ArcFileSystemInstance. (Closed)
Patch Set: Created 4 years, 1 month 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: 16 5 // Next MinVersion: 16
6 6
7 module arc.mojom; 7 module arc.mojom;
8 8
9 import "scale_factor.mojom"; 9 import "scale_factor.mojom";
10 10
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 109
110 // Sends intents to ARC on behalf of Chrome. 110 // Sends intents to ARC on behalf of Chrome.
111 // Next method ID: 13 111 // Next method ID: 13
112 interface IntentHelperInstance { 112 interface IntentHelperInstance {
113 // Sets the given package as a preferred package. The next time an ACTION_VIEW 113 // Sets the given package as a preferred package. The next time an ACTION_VIEW
114 // intent is sent with a URL that requires disambiguation, instead of opening 114 // intent is sent with a URL that requires disambiguation, instead of opening
115 // the ResolverActivity, this package will be picked if it is on the list. 115 // the ResolverActivity, this package will be picked if it is on the list.
116 // When multiple packages are set as preferred, the most recent setting wins. 116 // When multiple packages are set as preferred, the most recent setting wins.
117 [MinVersion=7] AddPreferredPackage@8(string package_name); 117 [MinVersion=7] AddPreferredPackage@8(string package_name);
118 118
119 // Asks the ContentResolver for the size of the file specified by the URL. 119 // DEPRECATED. Use FileSystemInstance.GetFileSize() instead.
120 [MinVersion=15] GetFileSize@11(string url) => (int64 size); 120 [MinVersion=15] GetFileSize@11(string url) => (int64 size);
Luis Héctor Chávez 2016/11/18 16:37:53 Can you add the Deprecated suffix to this method p
Shuhei Takahashi 2016/11/21 11:06:29 Sure, done.
121 121
122 // Passes an intent to an activity. 122 // Passes an intent to an activity.
123 [MinVersion=12] HandleIntent@10(IntentInfo intent, ActivityName activity); 123 [MinVersion=12] HandleIntent@10(IntentInfo intent, ActivityName activity);
124 124
125 // Handles the URL by sending an ACTION_VIEW intent to the package. The 125 // Handles the URL by sending an ACTION_VIEW intent to the package. The
126 // most suitable activity for the URL within the package will be started. 126 // most suitable activity for the URL within the package will be started.
127 [MinVersion=2] HandleUrl@2(string url, string package_name); 127 [MinVersion=2] HandleUrl@2(string url, string package_name);
128 128
129 // Handles the list of URLs by sending a specified intent to the handler. 129 // Handles the list of URLs by sending a specified intent to the handler.
130 [MinVersion=5] HandleUrlList@7(array<UrlWithMimeType> urls, 130 [MinVersion=5] HandleUrlList@7(array<UrlWithMimeType> urls,
131 ActivityName activity, 131 ActivityName activity,
132 ActionType action_type); 132 ActionType action_type);
133 133
134 // Establishes full-duplex communication with the host. 134 // Establishes full-duplex communication with the host.
135 Init@0(IntentHelperHost host_ptr); 135 Init@0(IntentHelperHost host_ptr);
136 136
137 // Asks the ContentResolver to get an FD to read the file specified by the 137 // DEPRECATED. Use FileSystemInstance.OpenFileToRead() instead.
138 // URL.
139 [MinVersion=15] OpenFileToRead@12(string url) => (handle? fd); 138 [MinVersion=15] OpenFileToRead@12(string url) => (handle? fd);
Yusuke Sato 2016/11/18 19:09:38 same, OpenFileToReadDeprecated
Shuhei Takahashi 2016/11/21 11:06:29 Done.
140 139
141 // Requests 48dp * 48dp icons of the |activities| suitable for the 140 // Requests 48dp * 48dp icons of the |activities| suitable for the
142 // |scale_factor|. An array of icon data will be returned. 141 // |scale_factor|. An array of icon data will be returned.
143 [MinVersion=3] RequestActivityIcons@4(array<ActivityName> activities, 142 [MinVersion=3] RequestActivityIcons@4(array<ActivityName> activities,
144 ScaleFactor scale_factor) 143 ScaleFactor scale_factor)
145 => (array<ActivityIcon> icons); 144 => (array<ActivityIcon> icons);
146 145
147 // Requests a list of packages that can handle |intent|. 146 // Requests a list of packages that can handle |intent|.
148 [MinVersion=12] RequestIntentHandlerList@9(IntentInfo intent) 147 [MinVersion=12] RequestIntentHandlerList@9(IntentInfo intent)
149 => (array<IntentHandlerInfo> handlers); 148 => (array<IntentHandlerInfo> handlers);
(...skipping 10 matching lines...) Expand all
160 // specified. Data can be sent as extras by including a JSON map string which 159 // specified. Data can be sent as extras by including a JSON map string which
161 // will be automatically converted to a bundle accessible by the receiver. 160 // will be automatically converted to a bundle accessible by the receiver.
162 // 161 //
163 // Note: Broadcasts can only be sent to whitelisted packages. Packages can be 162 // Note: Broadcasts can only be sent to whitelisted packages. Packages can be
164 // added to the whitelist in ArcBridgeService.java in the Android source. 163 // added to the whitelist in ArcBridgeService.java in the Android source.
165 [MinVersion=1] SendBroadcast@1(string action, 164 [MinVersion=1] SendBroadcast@1(string action,
166 string package_name, 165 string package_name,
167 string cls, 166 string cls,
168 string extras); 167 string extras);
169 }; 168 };
OLDNEW
« components/arc/common/file_system.mojom ('K') | « components/arc/common/file_system.mojom ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698