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

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

Issue 2257923002: arc: Handle non-launchable apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: 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 ece4046729b265e5ee47cbd455442c69763df8ca..2862bbc79003780bf25a06f8785e17dbe86d0b03 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();
@@ -79,6 +80,7 @@ class ArcAppListPrefs
bool ready;
bool showInLauncher;
bool shortcut;
+ bool launchable;
arc::mojom::OrientationLock orientation_lock;
};
@@ -242,7 +244,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,
@@ -263,6 +266,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();
@@ -282,6 +286,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