Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
|
Yusuke Sato
2016/09/12 23:41:02
Please also update the mojom file in the Android t
| |
| 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: 11 | 5 // Next MinVersion: 11 |
| 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. |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 81 [MinVersion=9] OnIntentFiltersUpdated@5(array<IntentFilter> intent_filters); | 81 [MinVersion=9] OnIntentFiltersUpdated@5(array<IntentFilter> intent_filters); |
| 82 | 82 |
| 83 // Opens the downloads directory in the Chrome OS file manager. | 83 // Opens the downloads directory in the Chrome OS file manager. |
| 84 [MinVersion=5] OnOpenDownloads@2(); | 84 [MinVersion=5] OnOpenDownloads@2(); |
| 85 | 85 |
| 86 // Opens the url with Chrome for Chrome OS. | 86 // Opens the url with Chrome for Chrome OS. |
| 87 OnOpenUrl@0(string url); | 87 OnOpenUrl@0(string url); |
| 88 | 88 |
| 89 // Opens the wallpaper picker dialog. | 89 // Opens the wallpaper picker dialog. |
| 90 [MinVersion=6] OpenWallpaperPicker@3(); | 90 [MinVersion=6] OpenWallpaperPicker@3(); |
| 91 | |
| 92 // Sets an image as the wallpaper. | |
| 93 // |jpeg_data| is a JPEG encoded wallpaper image. | |
| 94 [MinVersion=8] SetWallpaper@4(array<uint8> jpeg_data); | |
|
Yusuke Sato
2016/09/12 23:41:02
Removing the interface right after the canary buil
Muyuan
2016/09/13 23:16:09
Acknowledged.
| |
| 95 }; | 91 }; |
| 96 | 92 |
| 97 // Sends intents to ARC on behalf of Chrome. | 93 // Sends intents to ARC on behalf of Chrome. |
| 98 // Next method ID: 9 | 94 // Next method ID: 9 |
| 99 interface IntentHelperInstance { | 95 interface IntentHelperInstance { |
| 100 | 96 |
| 101 // Sets the given package as a preferred package. The next time an ACTION_VIEW | 97 // Sets the given package as a preferred package. The next time an ACTION_VIEW |
| 102 // intent is sent with a URL that requires disambiguation, instead of opening | 98 // intent is sent with a URL that requires disambiguation, instead of opening |
| 103 // the ResolverActivity, this package will be picked if it is on the list. | 99 // the ResolverActivity, this package will be picked if it is on the list. |
| 104 // When multiple packages are set as preferred, the most recent setting wins. | 100 // When multiple packages are set as preferred, the most recent setting wins. |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 139 // specified. Data can be sent as extras by including a JSON map string which | 135 // specified. Data can be sent as extras by including a JSON map string which |
| 140 // will be automatically converted to a bundle accessible by the receiver. | 136 // will be automatically converted to a bundle accessible by the receiver. |
| 141 // | 137 // |
| 142 // Note: Broadcasts can only be sent to whitelisted packages. Packages can be | 138 // Note: Broadcasts can only be sent to whitelisted packages. Packages can be |
| 143 // added to the whitelist in ArcBridgeService.java in the Android source. | 139 // added to the whitelist in ArcBridgeService.java in the Android source. |
| 144 [MinVersion=1] SendBroadcast@1(string action, | 140 [MinVersion=1] SendBroadcast@1(string action, |
| 145 string package_name, | 141 string package_name, |
| 146 string cls, | 142 string cls, |
| 147 string extras); | 143 string extras); |
| 148 }; | 144 }; |
| OLD | NEW |