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_APP_LIST_APP_LIST_SHOWER_DELEGATE_FACTORY_H_ |
| 6 #define ASH_APP_LIST_APP_LIST_SHOWER_DELEGATE_FACTORY_H_ |
| 7 |
| 8 #include <memory> |
| 9 |
| 10 #include "ash/ash_export.h" |
| 11 #include "base/macros.h" |
| 12 #include "ui/app_list/shower/app_list_shower_delegate_factory.h" |
| 13 |
| 14 namespace app_list { |
| 15 class AppListShower; |
| 16 } |
| 17 |
| 18 namespace ash { |
| 19 |
| 20 class AppListViewDelegateFactory; |
| 21 |
| 22 class ASH_EXPORT AppListShowerDelegateFactory |
| 23 : public app_list::AppListShowerDelegateFactory { |
| 24 public: |
| 25 explicit AppListShowerDelegateFactory( |
| 26 std::unique_ptr<AppListViewDelegateFactory> view_delegate_factory); |
| 27 ~AppListShowerDelegateFactory() override; |
| 28 |
| 29 std::unique_ptr<app_list::AppListShowerDelegate> GetDelegate( |
| 30 app_list::AppListShower* shower) override; |
| 31 |
| 32 private: |
| 33 std::unique_ptr<AppListViewDelegateFactory> view_delegate_factory_; |
| 34 |
| 35 DISALLOW_COPY_AND_ASSIGN(AppListShowerDelegateFactory); |
| 36 }; |
| 37 |
| 38 } // namespace ash |
| 39 |
| 40 #endif // ASH_APP_LIST_APP_LIST_SHOWER_DELEGATE_FACTORY_H_ |
OLD | NEW |