| 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 namespace content { | 14 namespace content { |
| 15 class BrowserContext; | 15 class BrowserContext; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace arc { | 18 namespace arc { |
| 19 | 19 |
| 20 extern const char kPlayStoreAppId[]; | 20 extern const char kPlayStoreAppId[]; |
| 21 extern const char kPlayStorePackage[]; |
| 22 extern const char kPlayStoreActivity[]; |
| 21 extern const char kSettingsAppId[]; | 23 extern const char kSettingsAppId[]; |
| 22 | 24 |
| 23 using CanHandleResolutionCallback = base::Callback<void(bool)>; | 25 using CanHandleResolutionCallback = base::Callback<void(bool)>; |
| 24 | 26 |
| 25 // Checks if a given app should be hidden in launcher. | 27 // Checks if a given app should be hidden in launcher. |
| 26 bool ShouldShowInLauncher(const std::string& app_id); | 28 bool ShouldShowInLauncher(const std::string& app_id); |
| 27 | 29 |
| 28 // Launch an app and let the system decides how big and where to place it. | 30 // Launch an app and let the system decides how big and where to place it. |
| 29 bool LaunchApp(content::BrowserContext* context, const std::string& app_id); | 31 bool LaunchApp(content::BrowserContext* context, const std::string& app_id); |
| 30 | 32 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 // Deprecated. Use ShowPackageInfoOnPage. | 72 // Deprecated. Use ShowPackageInfoOnPage. |
| 71 bool ShowPackageInfo(const std::string& package_name); | 73 bool ShowPackageInfo(const std::string& package_name); |
| 72 | 74 |
| 73 // Show package info for ARC package at the specified page. | 75 // Show package info for ARC package at the specified page. |
| 74 bool ShowPackageInfoOnPage(const std::string& package_name, | 76 bool ShowPackageInfoOnPage(const std::string& package_name, |
| 75 mojom::ShowPackageInfoPage page); | 77 mojom::ShowPackageInfoPage page); |
| 76 | 78 |
| 77 } // namespace arc | 79 } // namespace arc |
| 78 | 80 |
| 79 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_UTILS_H_ | 81 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_UTILS_H_ |
| OLD | NEW |