| 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 // |
| 5 // Next MinVersion: 8 |
| 4 | 6 |
| 5 module arc.mojom; | 7 module arc.mojom; |
| 6 | 8 |
| 7 import "scale_factor.mojom"; | 9 import "scale_factor.mojom"; |
| 8 | 10 |
| 9 // Describes the type of action to invoke. | 11 // Describes the type of action to invoke. |
| 10 enum ActionType { | 12 enum ActionType { |
| 11 VIEW, | 13 VIEW, |
| 12 SEND, | 14 SEND, |
| 13 SEND_MULTIPLE, | 15 SEND_MULTIPLE, |
| (...skipping 22 matching lines...) Expand all Loading... |
| 36 array<uint8> icon; // in BGRA8888 format | 38 array<uint8> icon; // in BGRA8888 format |
| 37 }; | 39 }; |
| 38 | 40 |
| 39 // URL associated with its mime type. | 41 // URL associated with its mime type. |
| 40 struct UrlWithMimeType { | 42 struct UrlWithMimeType { |
| 41 string url; | 43 string url; |
| 42 string mime_type; | 44 string mime_type; |
| 43 }; | 45 }; |
| 44 | 46 |
| 45 // Handles intents from ARC in Chrome. | 47 // Handles intents from ARC in Chrome. |
| 48 // Next method ID: 5 |
| 46 interface IntentHelperHost { | 49 interface IntentHelperHost { |
| 47 // Called when icons associated with the package are no longer up to date. | 50 // Called when icons associated with the package are no longer up to date. |
| 48 [MinVersion=3] OnIconInvalidated@1(string package_name); | 51 [MinVersion=3] OnIconInvalidated@1(string package_name); |
| 49 | 52 |
| 50 // Opens the downloads directory in the Chrome OS file manager. | 53 // Opens the downloads directory in the Chrome OS file manager. |
| 51 [MinVersion=5] OnOpenDownloads@2(); | 54 [MinVersion=5] OnOpenDownloads@2(); |
| 52 | 55 |
| 53 // Opens the url with Chrome for Chrome OS. | 56 // Opens the url with Chrome for Chrome OS. |
| 54 OnOpenUrl@0(string url); | 57 OnOpenUrl@0(string url); |
| 55 | 58 |
| 56 // Opens the wallpaper picker dialog. | 59 // Opens the wallpaper picker dialog. |
| 57 [MinVersion=6] OpenWallpaperPicker@3(); | 60 [MinVersion=6] OpenWallpaperPicker@3(); |
| 61 |
| 62 // Sets an image as the wallpaper. |
| 63 // |jpeg_data| is a JPEG encoded wallpaper image. |
| 64 [MinVersion=7] SetWallpaper@4(array<uint8> jpeg_data); |
| 58 }; | 65 }; |
| 59 | 66 |
| 60 // Sends intents to ARC on behalf of Chrome. | 67 // Sends intents to ARC on behalf of Chrome. |
| 68 // Next method ID: 8 |
| 61 interface IntentHelperInstance { | 69 interface IntentHelperInstance { |
| 62 // Handles the URL by sending an ACTION_VIEW intent to the package. The | 70 // Handles the URL by sending an ACTION_VIEW intent to the package. The |
| 63 // most suitable activity for the URL within the package will be started. | 71 // most suitable activity for the URL within the package will be started. |
| 64 [MinVersion=2] HandleUrl@2(string url, string package_name); | 72 [MinVersion=2] HandleUrl@2(string url, string package_name); |
| 65 | 73 |
| 66 // Handles the list of URLs by sending a specified intent to the handler. | 74 // Handles the list of URLs by sending a specified intent to the handler. |
| 67 [MinVersion=5] HandleUrlList@7(array<UrlWithMimeType> urls, | 75 [MinVersion=5] HandleUrlList@7(array<UrlWithMimeType> urls, |
| 68 ActivityName activity, | 76 ActivityName activity, |
| 69 ActionType action); | 77 ActionType action); |
| 70 | 78 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 94 // specified. Data can be sent as extras by including a JSON map string which | 102 // specified. Data can be sent as extras by including a JSON map string which |
| 95 // will be automatically converted to a bundle accessible by the receiver. | 103 // will be automatically converted to a bundle accessible by the receiver. |
| 96 // | 104 // |
| 97 // Note: Broadcasts can only be sent to whitelisted packages. Packages can be | 105 // Note: Broadcasts can only be sent to whitelisted packages. Packages can be |
| 98 // added to the whitelist in ArcBridgeService.java in the Android source. | 106 // added to the whitelist in ArcBridgeService.java in the Android source. |
| 99 [MinVersion=1] SendBroadcast@1(string action, | 107 [MinVersion=1] SendBroadcast@1(string action, |
| 100 string package_name, | 108 string package_name, |
| 101 string cls, | 109 string cls, |
| 102 string extras); | 110 string extras); |
| 103 }; | 111 }; |
| OLD | NEW |