Index: ash/common/shelf/shelf_delegate.h |
diff --git a/ash/common/shelf/shelf_delegate.h b/ash/common/shelf/shelf_delegate.h |
index fa5e0b9cc66d2e373a82005967214fb94ec4330d..9d61be4c833061ac821feb3d1796706923c723cf 100644 |
--- a/ash/common/shelf/shelf_delegate.h |
+++ b/ash/common/shelf/shelf_delegate.h |
@@ -42,6 +42,16 @@ class ASH_EXPORT ShelfDelegate { |
// Get the shelf ID from an application ID. |
virtual ShelfID GetShelfIDForAppID(const std::string& app_id) = 0; |
+ // Get the shelf ID from an application ID and a launch ID. |
+ // The launch ID can be passed to an app when launched in order to support |
+ // multiple shelf items per app. This id is used together with the app_id to |
+ // uniquely identify each shelf item that has the same app_id. |
+ // For example, a single virtualization app might want to show different |
+ // shelf icons for different remote apps. |
+ virtual ShelfID GetShelfIDForAppIDAndLaunchID( |
+ const std::string& app_id, |
+ const std::string& launch_id) = 0; |
+ |
// Checks whether a mapping exists from the ShelfID |id| to an app id. |
virtual bool HasShelfIDToAppIDMapping(ShelfID id) const = 0; |