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

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: Addressed Created 7 years, 7 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 45109e86fd50492ab57d4d67788609831de842dc..0bd8ec66295539c8e0afe731dbc6d9f82bb6b209 100644
--- a/ash/launcher/launcher_delegate.h
+++ b/ash/launcher/launcher_delegate.h
@@ -106,6 +106,18 @@ class ASH_EXPORT LauncherDelegate {
// True if the running launcher is the per application launcher.
virtual bool IsPerAppLauncher() = 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. A running instance will get pinned.
+ // In case 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 item(s) whose id is |app_id|. The new launcher will collect
+ // all items under one item, the old launcher might have multiple items.
+ virtual void UnpinAppsWithID(const std::string& app_id) = 0;
};
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698