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

Unified Diff: chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_browser.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_per_browser.h
diff --git a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_browser.h b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_browser.h
index 4774f62a672c925e6ae54857121efcd85439d11b..c355c092f966e80477267fc36aac222addcaa695 100644
--- a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_browser.h
+++ b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_browser.h
@@ -118,6 +118,15 @@ class ChromeLauncherControllerPerBrowser : public ash::LauncherModelObserver,
// be pinned.
virtual bool IsPinnable(ash::LauncherID id) const OVERRIDE;
+ // 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) OVERRIDE;
+
+ // 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) OVERRIDE;
+
// 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