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

Unified Diff: chrome/browser/ui/app_list/arc/arc_app_dialog.h

Issue 2529783002: arc: Implement uninstall confirmation dialog for Arc app. (Closed)
Patch Set: Address minor comments. Rebase. Created 4 years 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
Index: chrome/browser/ui/app_list/arc/arc_app_dialog.h
diff --git a/chrome/browser/ui/app_list/arc/arc_app_dialog.h b/chrome/browser/ui/app_list/arc/arc_app_dialog.h
new file mode 100644
index 0000000000000000000000000000000000000000..e6e547638b45525050972f81274c6c44153ba958
--- /dev/null
+++ b/chrome/browser/ui/app_list/arc/arc_app_dialog.h
@@ -0,0 +1,31 @@
+// Copyright 2016 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.
+
+#ifndef CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_DIALOG_H_
+#define CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_DIALOG_H_
+
+#include <string>
+
+#include "base/callback.h"
+
+class AppListControllerDelegate;
+class Profile;
+
+namespace arc {
+
+// Shows a dialog for user to confirm uninstallation of Arc app.
+// Currently, Arc app can only be manually uninstalled from AppList. But it
+// would be simple to enable the dialog to shown from other source.
+void ShowArcAppUninstallDialog(Profile* profile,
+ AppListControllerDelegate* controller,
+ const std::string& app_id);
+
+// Test purpose methods.
+bool IsArcAppDialogViewAliveForTest();
+
+bool CloseAppDialogViewAndConfirmForTest(bool confirm);
+
+} // namespace arc
+
+#endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_DIALOG_H_
« no previous file with comments | « chrome/browser/ui/app_list/arc/arc_app_context_menu.cc ('k') | chrome/browser/ui/app_list/arc/arc_app_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698