| 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 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 // Tests if the application can use the given target resolution. | 25 // Tests if the application can use the given target resolution. |
| 26 // The callback will receive the information once known. | 26 // The callback will receive the information once known. |
| 27 // A false will get returned if the result cannot be determined in which case | 27 // A false will get returned if the result cannot be determined in which case |
| 28 // the callback will not be called. | 28 // the callback will not be called. |
| 29 bool CanHandleResolution(content::BrowserContext* context, | 29 bool CanHandleResolution(content::BrowserContext* context, |
| 30 const std::string& app_id, | 30 const std::string& app_id, |
| 31 const gfx::Rect& rect, | 31 const gfx::Rect& rect, |
| 32 const CanHandleResolutionCallback callback); | 32 const CanHandleResolutionCallback callback); |
| 33 | 33 |
| 34 // Uninstalls the package in ARC. |
| 35 bool UninstallApp(content::BrowserContext* context, |
| 36 const std::string& package_name); |
| 37 |
| 34 } // namespace arc | 38 } // namespace arc |
| 35 | 39 |
| 36 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_UTILS_H_ | 40 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_UTILS_H_ |
| OLD | NEW |