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 "ui/gfx/geometry/rect.h" | 11 #include "ui/gfx/geometry/rect.h" |
12 | 12 |
13 namespace content { | 13 namespace content { |
14 class BrowserContext; | 14 class BrowserContext; |
15 } | 15 } |
16 | 16 |
17 namespace arc { | 17 namespace arc { |
18 | 18 |
| 19 extern const char kPlayStoreAppId[]; |
| 20 |
19 using CanHandleResolutionCallback = base::Callback<void(bool)>; | 21 using CanHandleResolutionCallback = base::Callback<void(bool)>; |
20 | 22 |
21 // Launch an app and let the system decides how big and where to place it. | 23 // Launch an app and let the system decides how big and where to place it. |
22 bool LaunchApp(content::BrowserContext* context, const std::string& app_id); | 24 bool LaunchApp(content::BrowserContext* context, const std::string& app_id); |
23 | 25 |
24 // Launch an app with given layout and let the system decides how big and where | 26 // Launch an app with given layout and let the system decides how big and where |
25 // to place it. | 27 // to place it. |
26 bool LaunchApp(content::BrowserContext* context, | 28 bool LaunchApp(content::BrowserContext* context, |
27 const std::string& app_id, | 29 const std::string& app_id, |
28 bool landscape_layout); | 30 bool landscape_layout); |
(...skipping 11 matching lines...) Expand all Loading... |
40 const std::string& app_id, | 42 const std::string& app_id, |
41 const gfx::Rect& rect, | 43 const gfx::Rect& rect, |
42 const CanHandleResolutionCallback& callback); | 44 const CanHandleResolutionCallback& callback); |
43 | 45 |
44 // Uninstalls the package in ARC. | 46 // Uninstalls the package in ARC. |
45 void UninstallPackage(const std::string& package_name); | 47 void UninstallPackage(const std::string& package_name); |
46 | 48 |
47 } // namespace arc | 49 } // namespace arc |
48 | 50 |
49 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_UTILS_H_ | 51 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_UTILS_H_ |
OLD | NEW |