| OLD | NEW |
| (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_ |
| OLD | NEW |