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

Side by Side Diff: chrome/browser/ui/app_list/arc/arc_app_utils.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
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_UTILS_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_UTILS_H_
6 #define CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_UTILS_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_UTILS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "components/arc/common/app.mojom.h" 11 #include "components/arc/common/app.mojom.h"
12 #include "ui/gfx/geometry/rect.h" 12 #include "ui/gfx/geometry/rect.h"
13 13
14 class Profile;
15
14 namespace content { 16 namespace content {
15 class BrowserContext; 17 class BrowserContext;
16 } 18 }
17 19
18 namespace arc { 20 namespace arc {
19 21
20 extern const char kPlayStoreAppId[]; 22 extern const char kPlayStoreAppId[];
21 extern const char kPlayStorePackage[]; 23 extern const char kPlayStorePackage[];
22 extern const char kPlayStoreActivity[]; 24 extern const char kPlayStoreActivity[];
23 extern const char kSettingsAppId[]; 25 extern const char kSettingsAppId[];
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // A false will get returned if the result cannot be determined in which case 60 // A false will get returned if the result cannot be determined in which case
59 // the callback will not be called. 61 // the callback will not be called.
60 bool CanHandleResolution(content::BrowserContext* context, 62 bool CanHandleResolution(content::BrowserContext* context,
61 const std::string& app_id, 63 const std::string& app_id,
62 const gfx::Rect& rect, 64 const gfx::Rect& rect,
63 const CanHandleResolutionCallback& callback); 65 const CanHandleResolutionCallback& callback);
64 66
65 // Uninstalls the package in ARC. 67 // Uninstalls the package in ARC.
66 void UninstallPackage(const std::string& package_name); 68 void UninstallPackage(const std::string& package_name);
67 69
70 // Uninstalls Arc app or removes shortcut.
71 void UninstallArcApp(const std::string& app_id, Profile* profile);
72
68 // Removes cached app shortcut icon in ARC. 73 // Removes cached app shortcut icon in ARC.
69 void RemoveCachedIcon(const std::string& icon_resource_id); 74 void RemoveCachedIcon(const std::string& icon_resource_id);
70 75
71 // Show package info for ARC package. 76 // Show package info for ARC package.
72 // Deprecated. Use ShowPackageInfoOnPage. 77 // Deprecated. Use ShowPackageInfoOnPage.
73 bool ShowPackageInfo(const std::string& package_name); 78 bool ShowPackageInfo(const std::string& package_name);
74 79
75 // Show package info for ARC package at the specified page. 80 // Show package info for ARC package at the specified page.
76 bool ShowPackageInfoOnPage(const std::string& package_name, 81 bool ShowPackageInfoOnPage(const std::string& package_name,
77 mojom::ShowPackageInfoPage page); 82 mojom::ShowPackageInfoPage page);
78 83
79 } // namespace arc 84 } // namespace arc
80 85
81 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_UTILS_H_ 86 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698