| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 // Deprecated. Use ShowPackageInfoOnPage. | 69 // Deprecated. Use ShowPackageInfoOnPage. |
| 68 bool ShowPackageInfo(const std::string& package_name); | 70 bool ShowPackageInfo(const std::string& package_name); |
| 69 | 71 |
| 70 // Show package info for ARC package at the specified page. | 72 // Show package info for ARC package at the specified page. |
| 71 bool ShowPackageInfoOnPage(const std::string& package_name, | 73 bool ShowPackageInfoOnPage(const std::string& package_name, |
| 72 mojom::ShowPackageInfoPage page); | 74 mojom::ShowPackageInfoPage page); |
| 73 | 75 |
| 74 } // namespace arc | 76 } // namespace arc |
| 75 | 77 |
| 76 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_UTILS_H_ | 78 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_UTILS_H_ |
| OLD | NEW |