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

Side by Side Diff: chrome/browser/ui/app_list/arc/arc_app_dialog.h

Issue 2529783002: arc: Implement uninstall confirmation dialog for Arc app. (Closed)
Patch Set: Clean up. 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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_DIALOG_H_
6 #define CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_DIALOG_H_
7
8 #include <string>
9
10 #include "base/callback.h"
11
12 class AppListControllerDelegate;
13 class Profile;
14
15 namespace arc {
16
17 using ArcAppConfirmCallback =
18 base::Callback<void(const std::string& app_id, Profile* profile)>;
19
20 // Shows a dialog for user to confirm uninstallation of Arc app.
21 // Currently, Arc app can only be manually uninstalled from AppList. But it
22 // would be simple to enable the dialog to shown from other source.
23 void ShowArcAppUninstallDialog(Profile* profile,
24 AppListControllerDelegate* controller,
25 const std::string& app_id,
26 ArcAppConfirmCallback confirm_callback);
27
28 // Test purpose methods.
29 bool IsArcAppDialogViewAliveForTest();
30
31 bool CloseAppDialogViewAndConfirmForTest(bool confirm);
32
33 } // namespace arc
34
35 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_DIALOG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698