Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(329)

Unified Diff: chrome/browser/ui/app_list/arc/arc_app_list_prefs.h

Issue 2210143003: arc: Handle non-launchable apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unit_tests due rebase and mojo param order change - trivial Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e1ce1d86932144b8f265f0fb892d2d1d969daf78..0118057fe2c1ce1a3232f78900a6733c41c092bd 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
@@ -63,6 +63,7 @@ class ArcAppListPrefs
bool ready,
bool showInLauncher,
bool shortcut,
+ bool launchable,
arc::mojom::OrientationLock orientation_lock);
~AppInfo();
@@ -77,6 +78,7 @@ class ArcAppListPrefs
bool ready;
bool showInLauncher;
bool shortcut;
+ bool launchable;
arc::mojom::OrientationLock orientation_lock;
};
@@ -240,7 +242,8 @@ class ArcAppListPrefs
mojo::Array<uint8_t> icon_png_data);
void OnTaskCreated(int32_t task_id,
const mojo::String& package_name,
- const mojo::String& activity) override;
+ const mojo::String& activity,
+ const mojo::String& name) override;
void OnTaskDestroyed(int32_t task_id) override;
void OnTaskSetActive(int32_t task_id) override;
void OnNotificationsEnabledChanged(const mojo::String& package_name,
@@ -261,6 +264,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();
@@ -279,6 +283,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);
+
Profile* const profile_;
// Owned by the BrowserContext.
« no previous file with comments | « no previous file | chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698