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

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: comment fixed 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
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_;
« no previous file with comments | « no previous file | chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc » ('j') | chrome/browser/ui/app_list/arc/arc_app_utils.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698