Chromium Code Reviews| Index: ui/app_list/app_list_view_delegate.h |
| diff --git a/ui/app_list/app_list_view_delegate.h b/ui/app_list/app_list_view_delegate.h |
| index 1e1150bdf867c41ff36630032e028d2046b9da95..32de15a7649a0bb2b22db3249cdaf1a6a021ed70 100644 |
| --- a/ui/app_list/app_list_view_delegate.h |
| +++ b/ui/app_list/app_list_view_delegate.h |
| @@ -5,9 +5,14 @@ |
| #ifndef UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
| #define UI_APP_LIST_APP_LIST_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 "base/strings/string16.h" |
| #include "ui/app_list/app_list_export.h" |
| +namespace base { |
| +class FilePath; |
| +} |
| + |
| namespace gfx { |
| class ImageSkia; |
| } |
| @@ -31,6 +36,12 @@ class APP_LIST_EXPORT AppListViewDelegate { |
| // Gets the SigninDelegate for the app list. Owned by the AppListViewDelegate. |
| virtual SigninDelegate* GetSigninDelegate() = 0; |
| + // Gets a path to a shortcut for the given app. Returns asynchronously as the |
| + // shortcut may not exist yet. |
| + virtual void GetShortcutPathForApp( |
| + const std::string& app_id, |
| + base::Callback<void(const base::FilePath&)> callback) = 0; |
| + |
| // Invoked when an AppListeItemModelView is activated by click or enter key. |
| virtual void ActivateAppListItem(AppListItemModel* item, |
| int event_flags) = 0; |