| 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 "ui/gfx/geometry/rect.h" | 12 #include "ui/gfx/geometry/rect.h" |
| 12 | 13 |
| 13 namespace content { | 14 namespace content { |
| 14 class BrowserContext; | 15 class BrowserContext; |
| 15 } | 16 } |
| 16 | 17 |
| 17 namespace arc { | 18 namespace arc { |
| 18 | 19 |
| 19 extern const char kPlayStoreAppId[]; | 20 extern const char kPlayStoreAppId[]; |
| 20 extern const char kSettingsAppId[]; | 21 extern const char kSettingsAppId[]; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 50 const gfx::Rect& rect, | 51 const gfx::Rect& rect, |
| 51 const CanHandleResolutionCallback& callback); | 52 const CanHandleResolutionCallback& callback); |
| 52 | 53 |
| 53 // Uninstalls the package in ARC. | 54 // Uninstalls the package in ARC. |
| 54 void UninstallPackage(const std::string& package_name); | 55 void UninstallPackage(const std::string& package_name); |
| 55 | 56 |
| 56 // Removes cached app shortcut icon in ARC. | 57 // Removes cached app shortcut icon in ARC. |
| 57 void RemoveCachedIcon(const std::string& icon_resource_id); | 58 void RemoveCachedIcon(const std::string& icon_resource_id); |
| 58 | 59 |
| 59 // Show package info for ARC package. | 60 // Show package info for ARC package. |
| 61 // Deprecated. Use ShowPackageInfoOnPage. |
| 60 bool ShowPackageInfo(const std::string& package_name); | 62 bool ShowPackageInfo(const std::string& package_name); |
| 61 | 63 |
| 64 // Show package info for ARC package at the specified page. |
| 65 bool ShowPackageInfoOnPage(const std::string& package_name, |
| 66 mojom::ShowPackageInfoPage page); |
| 67 |
| 62 } // namespace arc | 68 } // namespace arc |
| 63 | 69 |
| 64 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_UTILS_H_ | 70 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_UTILS_H_ |
| OLD | NEW |