Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Unified Diff: ui/app_list/app_list_view_delegate.h

Issue 17370003: [Win] App launcher drag/drop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix ash Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698