OLD | NEW |
---|---|
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: 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 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
64 array<uint8> icon; // in BGRA8888 format | 64 array<uint8> icon; // in BGRA8888 format |
65 }; | 65 }; |
66 | 66 |
67 // URL associated with its mime type. | 67 // URL associated with its mime type. |
68 struct UrlWithMimeType { | 68 struct UrlWithMimeType { |
69 string url; | 69 string url; |
70 string mime_type; | 70 string mime_type; |
71 }; | 71 }; |
72 | 72 |
73 // Handles intents from ARC in Chrome. | 73 // Handles intents from ARC in Chrome. |
74 // Next method ID: 6 | 74 // Next method ID: 6 |
Yusuke Sato
2016/09/13 23:19:28
Please add
// Deprecated method ID: 4
between l
Muyuan
2016/09/14 00:13:02
Done.
| |
75 interface IntentHelperHost { | 75 interface IntentHelperHost { |
76 // Called when icons associated with the package are no longer up to date. | 76 // Called when icons associated with the package are no longer up to date. |
77 [MinVersion=3] OnIconInvalidated@1(string package_name); | 77 [MinVersion=3] OnIconInvalidated@1(string package_name); |
78 | 78 |
79 // Called when intent filters are updated. Either on startup or when | 79 // Called when intent filters are updated. Either on startup or when |
80 // apps are installed or uninstalled. | 80 // apps are installed or uninstalled. |
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 | 91 |
92 // Sets an image as the wallpaper. | 92 // Sets an image as the wallpaper. |
93 // |jpeg_data| is a JPEG encoded wallpaper image. | 93 // |jpeg_data| is a JPEG encoded wallpaper image. |
94 [MinVersion=8] SetWallpaper@4(array<uint8> jpeg_data); | 94 [MinVersion=8] SetWallpaperDeprecated@4(array<uint8> jpeg_data); |
95 }; | 95 }; |
96 | 96 |
97 // Sends intents to ARC on behalf of Chrome. | 97 // Sends intents to ARC on behalf of Chrome. |
98 // Next method ID: 9 | 98 // Next method ID: 9 |
99 interface IntentHelperInstance { | 99 interface IntentHelperInstance { |
100 | 100 |
101 // Sets the given package as a preferred package. The next time an ACTION_VIEW | 101 // 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 | 102 // 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. | 103 // 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. | 104 // 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 | 139 // 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. | 140 // will be automatically converted to a bundle accessible by the receiver. |
141 // | 141 // |
142 // Note: Broadcasts can only be sent to whitelisted packages. Packages can be | 142 // Note: Broadcasts can only be sent to whitelisted packages. Packages can be |
143 // added to the whitelist in ArcBridgeService.java in the Android source. | 143 // added to the whitelist in ArcBridgeService.java in the Android source. |
144 [MinVersion=1] SendBroadcast@1(string action, | 144 [MinVersion=1] SendBroadcast@1(string action, |
145 string package_name, | 145 string package_name, |
146 string cls, | 146 string cls, |
147 string extras); | 147 string extras); |
148 }; | 148 }; |
OLD | NEW |