| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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_PRESENTER_DELEGATE_FACTORY_H_ | 5 #ifndef ASH_APP_LIST_APP_LIST_PRESENTER_DELEGATE_FACTORY_H_ |
| 6 #define ASH_APP_LIST_APP_LIST_PRESENTER_DELEGATE_FACTORY_H_ | 6 #define ASH_APP_LIST_APP_LIST_PRESENTER_DELEGATE_FACTORY_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "ui/app_list/presenter/app_list_presenter_delegate_factory.h" | 12 #include "ui/app_list/presenter/app_list_presenter_delegate_factory.h" |
| 13 | 13 |
| 14 namespace app_list { | 14 namespace app_list { |
| 15 class AppListPresenter; | |
| 16 class AppListViewDelegateFactory; | 15 class AppListViewDelegateFactory; |
| 17 } | 16 } |
| 18 | 17 |
| 19 namespace ash { | 18 namespace ash { |
| 20 | 19 |
| 21 class ASH_EXPORT AppListPresenterDelegateFactory | 20 class ASH_EXPORT AppListPresenterDelegateFactory |
| 22 : public app_list::AppListPresenterDelegateFactory { | 21 : public app_list::AppListPresenterDelegateFactory { |
| 23 public: | 22 public: |
| 24 explicit AppListPresenterDelegateFactory( | 23 explicit AppListPresenterDelegateFactory( |
| 25 std::unique_ptr<app_list::AppListViewDelegateFactory>); | 24 std::unique_ptr<app_list::AppListViewDelegateFactory>); |
| 26 ~AppListPresenterDelegateFactory() override; | 25 ~AppListPresenterDelegateFactory() override; |
| 27 | 26 |
| 28 std::unique_ptr<app_list::AppListPresenterDelegate> GetDelegate( | 27 std::unique_ptr<app_list::AppListPresenterDelegate> GetDelegate( |
| 29 app_list::AppListPresenter* presenter) override; | 28 app_list::AppListPresenterImpl* presenter) override; |
| 30 | 29 |
| 31 private: | 30 private: |
| 32 std::unique_ptr<app_list::AppListViewDelegateFactory> view_delegate_factory_; | 31 std::unique_ptr<app_list::AppListViewDelegateFactory> view_delegate_factory_; |
| 33 | 32 |
| 34 DISALLOW_COPY_AND_ASSIGN(AppListPresenterDelegateFactory); | 33 DISALLOW_COPY_AND_ASSIGN(AppListPresenterDelegateFactory); |
| 35 }; | 34 }; |
| 36 | 35 |
| 37 } // namespace ash | 36 } // namespace ash |
| 38 | 37 |
| 39 #endif // ASH_APP_LIST_APP_LIST_PRESENTER_DELEGATE_FACTORY_H_ | 38 #endif // ASH_APP_LIST_APP_LIST_PRESENTER_DELEGATE_FACTORY_H_ |
| OLD | NEW |