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

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

Issue 10388032: Move app list from ash to ui. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: fix win_aura bot and comments in #5 Created 8 years, 7 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 | « ui/app_list/app_list_view.cc ('k') | ui/app_list/drop_shadow_label.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 ASH_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ 5 #ifndef UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_
6 #define ASH_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ 6 #define UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "ash/ash_export.h" 11 #include "ui/app_list/app_list_export.h"
12 12
13 namespace ash { 13 namespace app_list {
14 14
15 class AppListItemModel; 15 class AppListItemModel;
16 class AppListModel; 16 class AppListModel;
17 17
18 class ASH_EXPORT AppListViewDelegate { 18 class APP_LIST_EXPORT AppListViewDelegate {
19 public: 19 public:
20 // AppListView owns the delegate. 20 // AppListView owns the delegate.
21 virtual ~AppListViewDelegate() {} 21 virtual ~AppListViewDelegate() {}
22 22
23 // Invoked to set the model that AppListView uses. 23 // Invoked to set the model that AppListView uses.
24 // Note that AppListView owns the model. 24 // Note that AppListView owns the model.
25 virtual void SetModel(AppListModel* model) = 0; 25 virtual void SetModel(AppListModel* model) = 0;
26 26
27 // Invoked to ask the delegate to populate the model for given |query|. 27 // Invoked to ask the delegate to populate the model for given |query|.
28 virtual void UpdateModel(const std::string& query) = 0; 28 virtual void UpdateModel(const std::string& query) = 0;
29 29
30 // Invoked an AppListeItemModelView is activated by click or enter key. 30 // Invoked an AppListeItemModelView is activated by click or enter key.
31 virtual void OnAppListItemActivated(AppListItemModel* item, 31 virtual void OnAppListItemActivated(AppListItemModel* item,
32 int event_flags) = 0; 32 int event_flags) = 0;
33
34 // Invoked to close app list.
35 virtual void Close() = 0;
33 }; 36 };
34 37
35 } // namespace ash 38 } // namespace app_list
36 39
37 #endif // ASH_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ 40 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/app_list/app_list_view.cc ('k') | ui/app_list/drop_shadow_label.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698