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..875cb080a89e567792fd79b17605cb5e5e8b139b 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,11 @@ 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|. |
sky
2013/06/19 14:07:40
Document that |callback| may be run immediately.
koz (OOO until 15th September)
2013/06/20 13:52:23
Done.
|
+ virtual void GetShortcutPathForApp( |
+ const std::string& app_id, |
+ base::Callback<void(const base::FilePath&)> callback) = 0; |
sky
2013/06/19 14:07:40
const Callback& ?
koz (OOO until 15th September)
2013/06/20 13:52:23
Done.
|
+ |
protected: |
virtual ~AppsGridViewDelegate() {} |
}; |