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

Side by Side Diff: ui/app_list/app_list_view_delegate.h

Issue 10900018: Introduce App Launcher for Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup Created 8 years, 3 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
msw 2012/08/29 08:02:35 nit: remove spaces
benwells 2012/08/30 06:51:30 Done.
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 "ui/app_list/app_list_export.h" 8 #include "ui/app_list/app_list_export.h"
9 9
10 namespace gfx {
11 class ImageSkia;
12 }
13
10 namespace app_list { 14 namespace app_list {
11 15
12 class AppListItemModel; 16 class AppListItemModel;
13 class AppListModel; 17 class AppListModel;
14 class SearchResult; 18 class SearchResult;
15 19
16 class APP_LIST_EXPORT AppListViewDelegate { 20 class APP_LIST_EXPORT AppListViewDelegate {
17 public: 21 public:
18 // AppListView owns the delegate. 22 // AppListView owns the delegate.
19 virtual ~AppListViewDelegate() {} 23 virtual ~AppListViewDelegate() {}
(...skipping 19 matching lines...) Expand all
39 int event_flags) = 0; 43 int event_flags) = 0;
40 44
41 // Called to invoke a custom action on |result|. |action_index| corresponds 45 // Called to invoke a custom action on |result|. |action_index| corresponds
42 // to the index of an icon in |result.action_icons()|. 46 // to the index of an icon in |result.action_icons()|.
43 virtual void InvokeSearchResultAction(const SearchResult& result, 47 virtual void InvokeSearchResultAction(const SearchResult& result,
44 int action_index, 48 int action_index,
45 int event_flags) = 0; 49 int event_flags) = 0;
46 50
47 // Invoked to close app list. 51 // Invoked to close app list.
48 virtual void Close() = 0; 52 virtual void Close() = 0;
53
54 // Get the application icon to be used, if any, for the app list.
55 virtual gfx::ImageSkia GetWindowAppIcon() = 0;
msw 2012/08/29 08:02:35 nit: return a pointer to avoid copying?
xiyuan 2012/08/29 17:39:15 gfx::ImageSkia is similar to SkBitmap. Copying is
49 }; 56 };
50 57
51 } // namespace app_list 58 } // namespace app_list
52 59
53 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ 60 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698