| 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_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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // A false will get returned if the result cannot be determined in which case | 65 // A false will get returned if the result cannot be determined in which case |
| 64 // the callback will not be called. | 66 // the callback will not be called. |
| 65 bool CanHandleResolution(content::BrowserContext* context, | 67 bool CanHandleResolution(content::BrowserContext* context, |
| 66 const std::string& app_id, | 68 const std::string& app_id, |
| 67 const gfx::Rect& rect, | 69 const gfx::Rect& rect, |
| 68 const CanHandleResolutionCallback& callback); | 70 const CanHandleResolutionCallback& callback); |
| 69 | 71 |
| 70 // Uninstalls the package in ARC. | 72 // Uninstalls the package in ARC. |
| 71 void UninstallPackage(const std::string& package_name); | 73 void UninstallPackage(const std::string& package_name); |
| 72 | 74 |
| 75 // Uninstalls Arc app or removes shortcut. |
| 76 void UninstallArcApp(const std::string& app_id, Profile* profile); |
| 77 |
| 73 // Removes cached app shortcut icon in ARC. | 78 // Removes cached app shortcut icon in ARC. |
| 74 void RemoveCachedIcon(const std::string& icon_resource_id); | 79 void RemoveCachedIcon(const std::string& icon_resource_id); |
| 75 | 80 |
| 76 // Show package info for ARC package. | 81 // Show package info for ARC package. |
| 77 // Deprecated. Use ShowPackageInfoOnPage. | 82 // Deprecated. Use ShowPackageInfoOnPage. |
| 78 bool ShowPackageInfo(const std::string& package_name); | 83 bool ShowPackageInfo(const std::string& package_name); |
| 79 | 84 |
| 80 // Show package info for ARC package at the specified page. | 85 // Show package info for ARC package at the specified page. |
| 81 bool ShowPackageInfoOnPage(const std::string& package_name, | 86 bool ShowPackageInfoOnPage(const std::string& package_name, |
| 82 mojom::ShowPackageInfoPage page); | 87 mojom::ShowPackageInfoPage page); |
| 83 | 88 |
| 84 } // namespace arc | 89 } // namespace arc |
| 85 | 90 |
| 86 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_UTILS_H_ | 91 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_UTILS_H_ |
| OLD | NEW |