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

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

Issue 2881283002: add interface to start first run when voice interaction oobe is completed (Closed)
Patch Set: Created 3 years, 7 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 // Next MinVersion: 16 5 // Next MinVersion: 17
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.
12 enum ActionType { 12 enum ActionType {
13 VIEW, 13 VIEW,
14 SEND, 14 SEND,
15 SEND_MULTIPLE, 15 SEND_MULTIPLE,
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 }; 77 };
78 78
79 // URL associated with its mime type. 79 // URL associated with its mime type.
80 struct UrlWithMimeType { 80 struct UrlWithMimeType {
81 string url; 81 string url;
82 string mime_type; 82 string mime_type;
83 }; 83 };
84 84
85 // Handles intents from ARC in Chrome. 85 // Handles intents from ARC in Chrome.
86 // Deprecated method ID: 4 86 // Deprecated method ID: 4
87 // Next method ID: 6 87 // Next method ID: 7
88 interface IntentHelperHost { 88 interface IntentHelperHost {
89 // Called when icons associated with the package are no longer up to date. 89 // Called when icons associated with the package are no longer up to date.
90 [MinVersion=3] OnIconInvalidated@1(string package_name); 90 [MinVersion=3] OnIconInvalidated@1(string package_name);
91 91
92 // Called when intent filters are updated. Either on startup or when 92 // Called when intent filters are updated. Either on startup or when
93 // apps are installed or uninstalled. 93 // apps are installed or uninstalled.
94 [MinVersion=9] OnIntentFiltersUpdated@5(array<IntentFilter> intent_filters); 94 [MinVersion=9] OnIntentFiltersUpdated@5(array<IntentFilter> intent_filters);
95 95
96 // Opens the downloads directory in the Chrome OS file manager. 96 // Opens the downloads directory in the Chrome OS file manager.
97 [MinVersion=5] OnOpenDownloads@2(); 97 [MinVersion=5] OnOpenDownloads@2();
98 98
99 // Opens the url with Chrome for Chrome OS. 99 // Opens the url with Chrome for Chrome OS.
100 OnOpenUrl@0(string url); 100 OnOpenUrl@0(string url);
101 101
102 // Opens the wallpaper picker dialog. 102 // Opens the wallpaper picker dialog.
103 [MinVersion=6] OpenWallpaperPicker@3(); 103 [MinVersion=6] OpenWallpaperPicker@3();
104 104
105 // Sets an image as the wallpaper. 105 // Sets an image as the wallpaper.
106 // |jpeg_data| is a JPEG encoded wallpaper image. 106 // |jpeg_data| is a JPEG encoded wallpaper image.
107 [MinVersion=8] SetWallpaperDeprecated@4(array<uint8> jpeg_data); 107 [MinVersion=8] SetWallpaperDeprecated@4(array<uint8> jpeg_data);
108
109 // Notifies IntentHelperHost that the voice interaction setup process
110 // is finished.
111 [MinVersion=16] OnVoiceInteractionOobeSetupCompleted@6();
Luis Héctor Chávez 2017/05/15 22:17:06 Can this be in another .mojom? I'd like to avoid a
108 }; 112 };
109 113
110 // Sends intents to ARC on behalf of Chrome. 114 // Sends intents to ARC on behalf of Chrome.
111 // Next method ID: 13 115 // Next method ID: 13
112 interface IntentHelperInstance { 116 interface IntentHelperInstance {
113 // Sets the given package as a preferred package. The next time an ACTION_VIEW 117 // Sets the given package as a preferred package. The next time an ACTION_VIEW
114 // intent is sent with a URL that requires disambiguation, instead of opening 118 // intent is sent with a URL that requires disambiguation, instead of opening
115 // the ResolverActivity, this package will be picked if it is on the list. 119 // the ResolverActivity, this package will be picked if it is on the list.
116 // When multiple packages are set as preferred, the most recent setting wins. 120 // When multiple packages are set as preferred, the most recent setting wins.
117 [MinVersion=7] AddPreferredPackage@8(string package_name); 121 [MinVersion=7] AddPreferredPackage@8(string package_name);
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 // specified. Data can be sent as extras by including a JSON map string which 163 // specified. Data can be sent as extras by including a JSON map string which
160 // will be automatically converted to a bundle accessible by the receiver. 164 // will be automatically converted to a bundle accessible by the receiver.
161 // 165 //
162 // Note: Broadcasts can only be sent to whitelisted packages. Packages can be 166 // Note: Broadcasts can only be sent to whitelisted packages. Packages can be
163 // added to the whitelist in ArcBridgeService.java in the Android source. 167 // added to the whitelist in ArcBridgeService.java in the Android source.
164 [MinVersion=1] SendBroadcast@1(string action, 168 [MinVersion=1] SendBroadcast@1(string action,
165 string package_name, 169 string package_name,
166 string cls, 170 string cls,
167 string extras); 171 string extras);
168 }; 172 };
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/arc/arc_service_launcher.cc ('k') | components/arc/intent_helper/arc_intent_helper_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698