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

Side by Side 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 compile 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | ui/app_list/apps_grid_view_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ 5 #ifndef UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_
6 #define UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ 6 #define UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_
7 7
8 #include "base/callback_forward.h"
8 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
9 #include "ui/app_list/app_list_export.h" 10 #include "ui/app_list/app_list_export.h"
10 11
12 namespace base {
13 class FilePath;
14 }
15
11 namespace gfx { 16 namespace gfx {
12 class ImageSkia; 17 class ImageSkia;
13 } 18 }
14 19
15 namespace app_list { 20 namespace app_list {
16 21
17 class AppListItemModel; 22 class AppListItemModel;
18 class AppListModel; 23 class AppListModel;
19 class SearchResult; 24 class SearchResult;
20 class SigninDelegate; 25 class SigninDelegate;
21 26
22 class APP_LIST_EXPORT AppListViewDelegate { 27 class APP_LIST_EXPORT AppListViewDelegate {
23 public: 28 public:
24 // AppListView owns the delegate. 29 // AppListView owns the delegate.
25 virtual ~AppListViewDelegate() {} 30 virtual ~AppListViewDelegate() {}
26 31
27 // Invoked to set the model that AppListView uses. 32 // Invoked to set the model that AppListView uses.
28 // Note that AppListView owns the model. 33 // Note that AppListView owns the model.
29 virtual void SetModel(AppListModel* model) = 0; 34 virtual void SetModel(AppListModel* model) = 0;
30 35
31 // Gets the SigninDelegate for the app list. Owned by the AppListViewDelegate. 36 // Gets the SigninDelegate for the app list. Owned by the AppListViewDelegate.
32 virtual SigninDelegate* GetSigninDelegate() = 0; 37 virtual SigninDelegate* GetSigninDelegate() = 0;
33 38
39 // Gets a path to a shortcut for the given app. Returns asynchronously as the
40 // shortcut may not exist yet.
41 virtual void GetShortcutPathForApp(
42 const std::string& app_id,
43 const base::Callback<void(const base::FilePath&)>& callback) = 0;
44
34 // Invoked when an AppListeItemModelView is activated by click or enter key. 45 // Invoked when an AppListeItemModelView is activated by click or enter key.
35 virtual void ActivateAppListItem(AppListItemModel* item, 46 virtual void ActivateAppListItem(AppListItemModel* item,
36 int event_flags) = 0; 47 int event_flags) = 0;
37 48
38 // Invoked to start a new search. Delegate collects query input from 49 // Invoked to start a new search. Delegate collects query input from
39 // SearchBoxModel and populates SearchResults. Both models are sub models 50 // SearchBoxModel and populates SearchResults. Both models are sub models
40 // of AppListModel. 51 // of AppListModel.
41 virtual void StartSearch() = 0; 52 virtual void StartSearch() = 0;
42 53
43 // Invoked to stop the current search. 54 // Invoked to stop the current search.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // Open the help UI. 88 // Open the help UI.
78 virtual void OpenHelp() = 0; 89 virtual void OpenHelp() = 0;
79 90
80 // Open the feedback UI. 91 // Open the feedback UI.
81 virtual void OpenFeedback() = 0; 92 virtual void OpenFeedback() = 0;
82 }; 93 };
83 94
84 } // namespace app_list 95 } // namespace app_list
85 96
86 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ 97 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | ui/app_list/apps_grid_view_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698