Chromium Code Reviews| Index: chrome/browser/ui/app_list/arc/arc_app_list_prefs.h |
| diff --git a/chrome/browser/ui/app_list/arc/arc_app_list_prefs.h b/chrome/browser/ui/app_list/arc/arc_app_list_prefs.h |
| index 907fa513ab1dfcd9e82387097825d50cf85919a9..f017e0c9573d1cfffc1c405b1e182da49abe1b07 100644 |
| --- a/chrome/browser/ui/app_list/arc/arc_app_list_prefs.h |
| +++ b/chrome/browser/ui/app_list/arc/arc_app_list_prefs.h |
| @@ -64,6 +64,7 @@ class ArcAppListPrefs |
| bool ready, |
| bool showInLauncher, |
| bool shortcut, |
| + bool launchable, |
| arc::mojom::OrientationLock orientation_lock); |
| ~AppInfo(); |
| @@ -78,6 +79,7 @@ class ArcAppListPrefs |
| bool ready; |
| bool showInLauncher; |
| bool shortcut; |
| + bool launchable; |
| arc::mojom::OrientationLock orientation_lock; |
| }; |
| @@ -227,7 +229,11 @@ class ArcAppListPrefs |
| void OnIcon(const mojo::String& app_id, |
| arc::mojom::ScaleFactor scale_factor, |
| mojo::Array<uint8_t> icon_png_data); |
| + void OnTaskCreatedDepricated(int32_t task_id, |
|
xiyuan
2016/08/05 17:39:39
nit: OnTaskCreatedDepricated -> OnTaskCreatedDepre
khmel
2016/08/05 18:28:35
Done.
|
| + const mojo::String& package_name, |
| + const mojo::String& activity) override; |
| void OnTaskCreated(int32_t task_id, |
| + const mojo::String& name, |
| const mojo::String& package_name, |
| const mojo::String& activity) override; |
| void OnTaskDestroyed(int32_t task_id) override; |
| @@ -250,6 +256,7 @@ class ArcAppListPrefs |
| const bool sticky, |
| const bool notifications_enabled, |
| const bool shortcut, |
| + const bool launchable, |
| arc::mojom::OrientationLock orientation_lock); |
| void DisableAllApps(); |
| void RemoveAllApps(); |
| @@ -268,6 +275,12 @@ class ArcAppListPrefs |
| ui::ScaleFactor scale_factor, |
| bool install_succeed); |
| + // This checks if app is not registered yet and in this case creates |
| + // non-launchable app entry. |
| + void MayAddNonLaunchableApp(const std::string& name, |
| + const std::string& package_name, |
| + const std::string& activity); |
| + |
| // Owned by the BrowserContext. |
| PrefService* prefs_; |