OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef ASH_WM_APP_LIST_SHOWER_DELEGATE_FACTORY_H_ | |
6 #define ASH_WM_APP_LIST_SHOWER_DELEGATE_FACTORY_H_ | |
7 | |
8 #include "ash/ash_export.h" | |
9 #include "base/macros.h" | |
10 #include "base/memory/scoped_ptr.h" | |
11 #include "ui/app_list/shower/app_list_shower_delegate_factory.h" | |
12 | |
13 namespace app_list { | |
14 class AppListShower; | |
15 } | |
16 | |
17 namespace ash { | |
18 | |
19 class AppListViewDelegateFactory; | |
20 | |
21 class ASH_EXPORT AppListShowerDelegateFactory | |
22 : public app_list::AppListShowerDelegateFactory { | |
23 public: | |
24 explicit AppListShowerDelegateFactory( | |
25 scoped_ptr<AppListViewDelegateFactory> view_delegate_factory); | |
26 ~AppListShowerDelegateFactory() override; | |
27 | |
28 scoped_ptr<app_list::AppListShowerDelegate> GetDelegate( | |
xiyuan
2016/04/07 18:13:22
nit: I just learned from my other review that we s
mfomitchev
2016/04/07 19:23:28
Cool, thanks! Done.
| |
29 app_list::AppListShower* shower) override; | |
30 | |
31 private: | |
32 scoped_ptr<AppListViewDelegateFactory> view_delegate_factory_; | |
33 | |
34 DISALLOW_COPY_AND_ASSIGN(AppListShowerDelegateFactory); | |
35 }; | |
36 | |
37 } // namespace ash | |
38 | |
39 #endif // ASH_WM_APP_LIST_SHOWER_DELEGATE_FACTORY_H_ | |
OLD | NEW |