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

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

Issue 2061183002: arc: IPC method to set custom wallpaper. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Style fix. 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 //
5 // Next MinVersion: 9
4 6
5 // Next MinVersion: 8
6 module arc.mojom; 7 module arc.mojom;
7 8
8 import "scale_factor.mojom"; 9 import "scale_factor.mojom";
9 10
10 // Describes the type of action to invoke. 11 // Describes the type of action to invoke.
11 enum ActionType { 12 enum ActionType {
12 VIEW, 13 VIEW,
13 SEND, 14 SEND,
14 SEND_MULTIPLE, 15 SEND_MULTIPLE,
15 }; 16 };
(...skipping 21 matching lines...) Expand all
37 array<uint8> icon; // in BGRA8888 format 38 array<uint8> icon; // in BGRA8888 format
38 }; 39 };
39 40
40 // URL associated with its mime type. 41 // URL associated with its mime type.
41 struct UrlWithMimeType { 42 struct UrlWithMimeType {
42 string url; 43 string url;
43 string mime_type; 44 string mime_type;
44 }; 45 };
45 46
46 // Handles intents from ARC in Chrome. 47 // Handles intents from ARC in Chrome.
47 // Next method ID: 4 48 // Next method ID: 5
48 interface IntentHelperHost { 49 interface IntentHelperHost {
49 // 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.
50 [MinVersion=3] OnIconInvalidated@1(string package_name); 51 [MinVersion=3] OnIconInvalidated@1(string package_name);
51 52
52 // Opens the downloads directory in the Chrome OS file manager. 53 // Opens the downloads directory in the Chrome OS file manager.
53 [MinVersion=5] OnOpenDownloads@2(); 54 [MinVersion=5] OnOpenDownloads@2();
54 55
55 // Opens the url with Chrome for Chrome OS. 56 // Opens the url with Chrome for Chrome OS.
56 OnOpenUrl@0(string url); 57 OnOpenUrl@0(string url);
57 58
58 // Opens the wallpaper picker dialog. 59 // Opens the wallpaper picker dialog.
59 [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=8] SetWallpaper@4(array<uint8> jpeg_data);
60 }; 65 };
61 66
62 // Sends intents to ARC on behalf of Chrome. 67 // Sends intents to ARC on behalf of Chrome.
63 // Next method ID: 9 68 // Next method ID: 9
64 interface IntentHelperInstance { 69 interface IntentHelperInstance {
65 70
66 // Sets the given package as a preferred package. The next time an ACTION_VIEW 71 // Sets the given package as a preferred package. The next time an ACTION_VIEW
67 // intent is sent with a URL that requires disambiguation, instead of opening 72 // intent is sent with a URL that requires disambiguation, instead of opening
68 // the ResolverActivity, this package will be picked if it is on the list. 73 // the ResolverActivity, this package will be picked if it is on the list.
69 // When multiple packages are set as preferred, the most recent setting wins. 74 // When multiple packages are set as preferred, the most recent setting wins.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 // specified. Data can be sent as extras by including a JSON map string which 109 // specified. Data can be sent as extras by including a JSON map string which
105 // will be automatically converted to a bundle accessible by the receiver. 110 // will be automatically converted to a bundle accessible by the receiver.
106 // 111 //
107 // Note: Broadcasts can only be sent to whitelisted packages. Packages can be 112 // Note: Broadcasts can only be sent to whitelisted packages. Packages can be
108 // added to the whitelist in ArcBridgeService.java in the Android source. 113 // added to the whitelist in ArcBridgeService.java in the Android source.
109 [MinVersion=1] SendBroadcast@1(string action, 114 [MinVersion=1] SendBroadcast@1(string action,
110 string package_name, 115 string package_name,
111 string cls, 116 string cls,
112 string extras); 117 string extras);
113 }; 118 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698