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

Unified Diff: components/arc/common/app.mojom

Issue 1756193008: Support uninstalling ARC app from Chrome launcher (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/app_list/arc/arc_app_utils.cc ('k') | components/arc/test/fake_app_instance.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/common/app.mojom
diff --git a/components/arc/common/app.mojom b/components/arc/common/app.mojom
index b18adbe138643af0212a8b4001fb0c4ebfa7b15f..900bce1f4353b5065acdea6daa68939ffc299653 100644
--- a/components/arc/common/app.mojom
+++ b/components/arc/common/app.mojom
@@ -1,6 +1,8 @@
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+//
+// Next MinVersion: 3
module arc;
@@ -25,6 +27,7 @@ struct AppInfo {
string name;
string package_name;
string activity;
+ [MinVersion=2] bool sticky; // true if the app cannot be uninstalled
};
// Represents a rectangle to specify screen coordinates.
@@ -35,6 +38,7 @@ struct ScreenRect {
int32 bottom;
};
+// Next method ID: 4
interface AppHost {
// Receives a list of available ARC apps to Chrome. Members of AppInfo must
// contain non-empty string.
@@ -67,7 +71,7 @@ interface AppInstance {
// |activity|, which cannot be empty. |dimension_on_screen| can be null to
// indicate to use the entire screen.
LaunchApp(string package_name, string activity,
- [MinVersion=1] ScreenRect? dimension);
+ [MinVersion=1] ScreenRect? dimension_on_screen);
victorhsieh0 2016/03/15 17:28:19 Sync this to Android's version to follow the comme
// Sends a request to ARC to refresh a list of ARC apps.
// OnRefreshAppsList is expected in response to this message. However,
@@ -84,5 +88,9 @@ interface AppInstance {
// Query if a given resolution can be handled by the application. Returns true
// if it can.
[MinVersion=1] CanHandleResolution(string package_name, string activity,
- ScreenRect dimension) => (bool success);
+ ScreenRect dimension) => (bool can_handle);
+
+ // Sends a request to ARC to uninstall the given package. Error (if ever
+ // happens) is ignored, and uninstall option should appear in the UI.
+ [MinVersion=2] UninstallPackage(string package_name);
victorhsieh0 2016/03/15 17:28:19 Sync this to Android's version to avoid using |pac
};
« no previous file with comments | « chrome/browser/ui/app_list/arc/arc_app_utils.cc ('k') | components/arc/test/fake_app_instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698