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

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: Fixed review issue. 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 ae1b654b6508c657b2a219e26df07c63745c283e..c56483388c784f42f5a6909816544092addd1a79 100644
--- a/chrome/browser/ui/views/ash/launcher/chrome_launcher_controller.h
+++ b/chrome/browser/ui/views/ash/launcher/chrome_launcher_controller.h
@@ -105,6 +105,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);
@@ -221,8 +224,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