Chromium Code Reviews| 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..b9fa37c6ed5ac61af2ebe172d95251af942e1c3f 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.h" |
|
xiyuan
2013/06/19 05:41:38
nit: callback_forward.h here and callback.h in cc
koz (OOO until 15th September)
2013/06/19 07:55:08
Done.
|
| #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|. |
| + virtual void GetShortcutPathForApp( |
| + const std::string& app_id, |
| + base::Callback<void(const base::FilePath&)> callback) = 0; |
| + |
| protected: |
| virtual ~AppsGridViewDelegate() {} |
| }; |