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..12a1c4708720201331279041c356f49b26497b4a 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_forward.h" |
#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; |
xiyuan
2013/06/19 16:21:38
const Callback& here too.
koz (OOO until 15th September)
2013/06/20 13:52:23
Done.
|
+ |
// Invoked when an AppListeItemModelView is activated by click or enter key. |
virtual void ActivateAppListItem(AppListItemModel* item, |
int event_flags) = 0; |