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

Unified Diff: chrome/browser/ui/ash/launcher/chrome_launcher_controller.h

Issue 298303002: Add option to install an ephemeral app to ChromeOS shelf context menu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed asargent's review comments Created 6 years, 7 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/ash/launcher/chrome_launcher_controller.h
diff --git a/chrome/browser/ui/ash/launcher/chrome_launcher_controller.h b/chrome/browser/ui/ash/launcher/chrome_launcher_controller.h
index e0bdadcce9d73d2e0145d4725a4c563e4ebd9c91..9c448b66be6ad31ecdb41ade70f45879f40513bd 100644
--- a/chrome/browser/ui/ash/launcher/chrome_launcher_controller.h
+++ b/chrome/browser/ui/ash/launcher/chrome_launcher_controller.h
@@ -179,6 +179,14 @@ class ChromeLauncherController : public ash::ShelfDelegate,
// be pinned.
bool IsPinnable(ash::ShelfID id) const;
+ // Installs the specified id. Only valid if the id corresponds to an ephemeral
+ // app.
+ void Install(ash::ShelfID id);
+
+ // Returns true if the specified item can be installed. Only true for
+ // ephemeral apps.
+ bool CanInstall(ash::ShelfID id);
+
// If there is no shelf item in the shelf for application |app_id|, one
// gets created. The (existing or created) shelf items get then locked
// against a users un-pinning removal.

Powered by Google App Engine
This is Rietveld 408576698