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

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

Issue 10534142: Add support for pinning platform apps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comment Created 8 years, 6 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/views/ash/launcher/chrome_launcher_controller.h
diff --git a/chrome/browser/ui/views/ash/launcher/chrome_launcher_controller.h b/chrome/browser/ui/views/ash/launcher/chrome_launcher_controller.h
index d44fb58f5dbcf2c15f5709c2dcbbeeaabf7d131b..c42cb2b97d4d56ea3b1ffdeb4cc6876be28cba6c 100644
--- a/chrome/browser/ui/views/ash/launcher/chrome_launcher_controller.h
+++ b/chrome/browser/ui/views/ash/launcher/chrome_launcher_controller.h
@@ -104,6 +104,9 @@ class ChromeLauncherController : public ash::LauncherDelegate,
// Invoked when the underlying browser/app is closed.
void LauncherItemClosed(ash::LauncherID id);
+ // Pins the specified id. Currently only supports platform apps.
+ void Pin(ash::LauncherID id);
+
// Unpins the specified id, closing if not running.
void Unpin(ash::LauncherID id);
@@ -220,8 +223,6 @@ class ChromeLauncherController : public ash::LauncherDelegate,
Item();
~Item();
- bool is_pinned() const { return controller == NULL; }
-
// Type of item.
ItemType item_type;

Powered by Google App Engine
This is Rietveld 408576698