| Index: ash/app_list/app_list_presenter_delegate_factory.h
|
| diff --git a/ash/app_list/app_list_presenter_delegate_factory.h b/ash/app_list/app_list_presenter_delegate_factory.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f8d4f20a92bf1825bfb551711733663e71f42f0c
|
| --- /dev/null
|
| +++ b/ash/app_list/app_list_presenter_delegate_factory.h
|
| @@ -0,0 +1,40 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef ASH_APP_LIST_APP_LIST_PRESENTER_DELEGATE_FACTORY_H_
|
| +#define ASH_APP_LIST_APP_LIST_PRESENTER_DELEGATE_FACTORY_H_
|
| +
|
| +#include <memory>
|
| +
|
| +#include "ash/ash_export.h"
|
| +#include "base/macros.h"
|
| +#include "ui/app_list/presenter/app_list_presenter_delegate_factory.h"
|
| +
|
| +namespace app_list {
|
| +class AppListPresenter;
|
| +}
|
| +
|
| +namespace ash {
|
| +
|
| +class AppListViewDelegateFactory;
|
| +
|
| +class ASH_EXPORT AppListPresenterDelegateFactory
|
| + : public app_list::AppListPresenterDelegateFactory {
|
| + public:
|
| + explicit AppListPresenterDelegateFactory(
|
| + std::unique_ptr<AppListViewDelegateFactory> view_delegate_factory);
|
| + ~AppListPresenterDelegateFactory() override;
|
| +
|
| + std::unique_ptr<app_list::AppListPresenterDelegate> GetDelegate(
|
| + app_list::AppListPresenter* presenter) override;
|
| +
|
| + private:
|
| + std::unique_ptr<AppListViewDelegateFactory> view_delegate_factory_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(AppListPresenterDelegateFactory);
|
| +};
|
| +
|
| +} // namespace ash
|
| +
|
| +#endif // ASH_APP_LIST_APP_LIST_PRESENTER_DELEGATE_FACTORY_H_
|
|
|