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