| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_DIALOG_H_ | 5 #ifndef CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_DIALOG_H_ |
| 6 #define CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_DIALOG_H_ | 6 #define CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_DIALOG_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 | 11 |
| 12 class AppListControllerDelegate; | 12 class AppListControllerDelegate; |
| 13 class Profile; | 13 class Profile; |
| 14 | 14 |
| 15 namespace arc { | 15 namespace arc { |
| 16 | 16 |
| 17 // Shows a dialog for user to confirm uninstallation of Arc app. | 17 // Shows a dialog for user to confirm uninstallation of ARC app. |
| 18 // Currently, Arc app can only be manually uninstalled from AppList. But it | 18 // Currently, ARC app can only be manually uninstalled from AppList. But it |
| 19 // would be simple to enable the dialog to shown from other source. | 19 // would be simple to enable the dialog to shown from other source. |
| 20 void ShowArcAppUninstallDialog(Profile* profile, | 20 void ShowArcAppUninstallDialog(Profile* profile, |
| 21 AppListControllerDelegate* controller, | 21 AppListControllerDelegate* controller, |
| 22 const std::string& app_id); | 22 const std::string& app_id); |
| 23 | 23 |
| 24 // Test purpose methods. | 24 // Test purpose methods. |
| 25 bool IsArcAppDialogViewAliveForTest(); | 25 bool IsArcAppDialogViewAliveForTest(); |
| 26 | 26 |
| 27 bool CloseAppDialogViewAndConfirmForTest(bool confirm); | 27 bool CloseAppDialogViewAndConfirmForTest(bool confirm); |
| 28 | 28 |
| 29 } // namespace arc | 29 } // namespace arc |
| 30 | 30 |
| 31 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_DIALOG_H_ | 31 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_DIALOG_H_ |
| OLD | NEW |