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

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: Review ready. 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 4
5 module arc.mojom; 5 module arc.mojom;
6 6
7 import "scale_factor.mojom"; 7 import "scale_factor.mojom";
8 8
9 // Describes the type of action to invoke. 9 // Describes the type of action to invoke.
10 enum ActionType { 10 enum ActionType {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 [MinVersion=3] OnIconInvalidated@1(string package_name); 48 [MinVersion=3] OnIconInvalidated@1(string package_name);
49 49
50 // Opens the downloads directory in the Chrome OS file manager. 50 // Opens the downloads directory in the Chrome OS file manager.
51 [MinVersion=5] OnOpenDownloads@2(); 51 [MinVersion=5] OnOpenDownloads@2();
52 52
53 // Opens the url with Chrome for Chrome OS. 53 // Opens the url with Chrome for Chrome OS.
54 OnOpenUrl@0(string url); 54 OnOpenUrl@0(string url);
55 55
56 // Opens the wallpaper picker dialog. 56 // Opens the wallpaper picker dialog.
57 [MinVersion=6] OpenWallpaperPicker@3(); 57 [MinVersion=6] OpenWallpaperPicker@3();
58
59 // Sets an image as the wallpaper.
60 // |jpeg_data| is a JPEG encoded wallpaper image.
61 [MinVersion=7] SetWallpaper@4(array<uint8> jpeg_data);
58 }; 62 };
59 63
60 // Sends intents to ARC on behalf of Chrome. 64 // Sends intents to ARC on behalf of Chrome.
61 interface IntentHelperInstance { 65 interface IntentHelperInstance {
62 // Handles the URL by sending an ACTION_VIEW intent to the package. The 66 // 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. 67 // most suitable activity for the URL within the package will be started.
64 [MinVersion=2] HandleUrl@2(string url, string package_name); 68 [MinVersion=2] HandleUrl@2(string url, string package_name);
65 69
66 // Handles the list of URLs by sending a specified intent to the handler. 70 // Handles the list of URLs by sending a specified intent to the handler.
67 [MinVersion=5] HandleUrlList@7(array<UrlWithMimeType> urls, 71 [MinVersion=5] HandleUrlList@7(array<UrlWithMimeType> urls,
(...skipping 26 matching lines...) Expand all
94 // specified. Data can be sent as extras by including a JSON map string which 98 // 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. 99 // will be automatically converted to a bundle accessible by the receiver.
96 // 100 //
97 // Note: Broadcasts can only be sent to whitelisted packages. Packages can be 101 // Note: Broadcasts can only be sent to whitelisted packages. Packages can be
98 // added to the whitelist in ArcBridgeService.java in the Android source. 102 // added to the whitelist in ArcBridgeService.java in the Android source.
99 [MinVersion=1] SendBroadcast@1(string action, 103 [MinVersion=1] SendBroadcast@1(string action,
100 string package_name, 104 string package_name,
101 string cls, 105 string cls,
102 string extras); 106 string extras);
103 }; 107 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698