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

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

Issue 2601323002: arc: Handle default app not availble case. (Closed)
Patch Set: Created 3 years, 11 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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: 17 5 // Next MinVersion: 18
6 6
7 module arc.mojom; 7 module arc.mojom;
8 8
9 import "scale_factor.mojom"; 9 import "scale_factor.mojom";
10 import "screen_rect.mojom"; 10 import "screen_rect.mojom";
11 11
12 // Describes OrientationLock request. 12 // Describes OrientationLock request.
13 // Note: ChromeOS currently assumes the internal panel is always landscape. 13 // Note: ChromeOS currently assumes the internal panel is always landscape.
14 // All rotation angles mentioned here are measured clockwise. 14 // All rotation angles mentioned here are measured clockwise.
15 [Extensible] 15 [Extensible]
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 // Notifies that task has been activated. 122 // Notifies that task has been activated.
123 [MinVersion=4] OnTaskSetActive@6(int32 task_id); 123 [MinVersion=4] OnTaskSetActive@6(int32 task_id);
124 124
125 // Notifies that notifications enabled settings in Android is changed. 125 // Notifies that notifications enabled settings in Android is changed.
126 [MinVersion=7] OnNotificationsEnabledChanged@7(string package_name, 126 [MinVersion=7] OnNotificationsEnabledChanged@7(string package_name,
127 bool enabled); 127 bool enabled);
128 128
129 // Notifies that an application shortcut needs to be created. 129 // Notifies that an application shortcut needs to be created.
130 [MinVersion=9] OnInstallShortcut@11(ShortcutInfo shortcut); 130 [MinVersion=9] OnInstallShortcut@11(ShortcutInfo shortcut);
131 131
132 // Notifies that Play Store installation has been started. 132 // Notifies that Play Store installation has been started. |package_name|
133 [MinVersion=16] OnInstallationStarted@14(); 133 // specifies installation package
134 [MinVersion=16] OnInstallationStarted@14(
135 [MinVersion=17] string? package_name@0);
134 136
135 // Notifies that Play Store installation is finished. 137 // Notifies that Play Store installation is finished. |package_name| specifies
136 [MinVersion=16] OnInstallationFinished@15(); 138 // installation package and |success| contains true if installation has
139 // completed successfully.
140 [MinVersion=16] OnInstallationFinished@15(
141 [MinVersion=17] string? package_name@0,
142 [MinVersion=17] bool success@1);
Luis Héctor Chávez 2017/01/03 19:08:00 doesn't this also need to be optional? otherwise y
khmel 2017/01/03 21:40:56 Bool cannot be optional. So I embedded everything
137 143
138 // Notifies that task requested orientation lock. 144 // Notifies that task requested orientation lock.
139 [MinVersion=12] OnTaskOrientationLockRequested@12(int32 task_id, 145 [MinVersion=12] OnTaskOrientationLockRequested@12(int32 task_id,
140 OrientationLock lock); 146 OrientationLock lock);
141 }; 147 };
142 148
143 // TODO(lhchavez): Migrate all request/response messages to Mojo. 149 // TODO(lhchavez): Migrate all request/response messages to Mojo.
144 // Next method ID: 16 150 // Next method ID: 16
145 // Deprecated method ID: 9 151 // Deprecated method ID: 9
146 interface AppInstance { 152 interface AppInstance {
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 ShowPackageInfoPage page, 213 ShowPackageInfoPage page,
208 ScreenRect dimension_on_screen); 214 ScreenRect dimension_on_screen);
209 215
210 // Sets notification setting for the package. 216 // Sets notification setting for the package.
211 [MinVersion=6] SetNotificationsEnabled@10(string package_name, bool enabled); 217 [MinVersion=6] SetNotificationsEnabled@10(string package_name, bool enabled);
212 218
213 // Sends a request to ARC to uninstall the given package. Error (if ever 219 // Sends a request to ARC to uninstall the given package. Error (if ever
214 // happens) is ignored, and uninstall option should appear in the UI. 220 // happens) is ignored, and uninstall option should appear in the UI.
215 [MinVersion=2] UninstallPackage@5(string package_name); 221 [MinVersion=2] UninstallPackage@5(string package_name);
216 }; 222 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698