Index: ui/app_list/apps_grid_view_delegate.h |
diff --git a/ui/app_list/apps_grid_view_delegate.h b/ui/app_list/apps_grid_view_delegate.h |
index 90a892b9b767803a9ec1e3ab65f46af5e4ce4b5a..59dc8f66fb262903b2e3b9b08fcf839f7359872e 100644 |
--- a/ui/app_list/apps_grid_view_delegate.h |
+++ b/ui/app_list/apps_grid_view_delegate.h |
@@ -5,8 +5,13 @@ |
#ifndef UI_APP_LIST_APPS_GRID_VIEW_DELEGATE_H_ |
#define UI_APP_LIST_APPS_GRID_VIEW_DELEGATE_H_ |
+#include "base/callback_forward.h" |
#include "ui/app_list/app_list_export.h" |
+namespace base { |
+class FilePath; |
+} |
+ |
namespace app_list { |
class AppListItemModel; |
@@ -17,6 +22,12 @@ class APP_LIST_EXPORT AppsGridViewDelegate { |
// the flags of the keyboard/mouse event that triggers the activation request. |
virtual void ActivateApp(AppListItemModel* item, int event_flags) = 0; |
+ // Gets the path to a shortcut for the app represented by |item|. |callback| |
+ // may be run immediately. |
+ virtual void GetShortcutPathForApp( |
+ const std::string& app_id, |
+ const base::Callback<void(const base::FilePath&)>& callback) = 0; |
+ |
protected: |
virtual ~AppsGridViewDelegate() {} |
}; |