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

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

Issue 12288012: Showing launcher items for windowed v1 apps - pinned or not. Also - don't show windowed v1 apps in … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing build breakage with clang Created 7 years, 10 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 4e99534db08729c9d7f5e314318ad4d911a47a85..ff4b36cf3f4ebeed8851ab9fbe0e55b96e34882c 100644
--- a/chrome/browser/ui/ash/launcher/chrome_launcher_controller.h
+++ b/chrome/browser/ui/ash/launcher/chrome_launcher_controller.h
@@ -136,6 +136,15 @@ class ChromeLauncherController
// be pinned.
virtual bool IsPinnable(ash::LauncherID id) const = 0;
+ // If there is no launcher item in the launcher for application |app_id|, one
+ // gets created. The (existing or created) launcher items get then locked
+ // against a users un-pinning removal.
+ virtual void LockV1AppWithID(const std::string& app_id) = 0;
+
+ // A previously locked launcher item of type |app_id| gets unlocked. If the
+ // lock count reaches 0 and the item is not pinned it will go away.
+ virtual void UnlockV1AppWithID(const std::string& app_id) = 0;
+
// Requests that the launcher item controller specified by |id| open a new
// instance of the app. |event_flags| holds the flags of the event which
// triggered this command.

Powered by Google App Engine
This is Rietveld 408576698