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

Unified Diff: ash/launcher/launcher_delegate.h

Issue 14533006: Drag and drop between app list and launcher - First patch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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: ash/launcher/launcher_delegate.h
diff --git a/ash/launcher/launcher_delegate.h b/ash/launcher/launcher_delegate.h
index 88c08f70ead03b6a63762735bb893d5d4c50eb11..4e6e89b01fe625d44f8c353a365a44cfacb37f35 100644
--- a/ash/launcher/launcher_delegate.h
+++ b/ash/launcher/launcher_delegate.h
@@ -96,6 +96,18 @@ class ASH_EXPORT LauncherDelegate {
// Callback used to inform the delegate that a specific launcher no longer
// exists.
virtual void OnLauncherDestroyed(Launcher* launcher) = 0;
+
+ // Get the launcher ID from an application ID.
+ virtual LauncherID GetLauncherIDForAppID(const std::string& app_id) = 0;
+
+ // Pins an app with |app_id| to launcher. If there is a running instance in
James Cook 2013/04/29 22:08:29 nice comment
Mr4D (OOO till 08-26) 2013/04/30 16:59:01 Okay, changed comment.
+ // launcher, the running instance is pinned. If there is no running instance,
+ // a new launcher item is created and pinned.
+ virtual void PinAppWithID(const std::string& app_id) = 0;
+
+ // Unpins any app items whose id is |app_id|.
James Cook 2013/04/29 22:08:29 Consider explaining why there might be more than o
Mr4D (OOO till 08-26) 2013/04/30 16:59:01 Done.
+ virtual void UnpinAppsWithID(const std::string& app_id) = 0;
+
};
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698