| Index: ui/app_list/presenter/app_list.h
|
| diff --git a/ui/app_list/presenter/app_list.h b/ui/app_list/presenter/app_list.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2cf701d2a5cbd1a1f6a9ae07f4f2b8b908f922fe
|
| --- /dev/null
|
| +++ b/ui/app_list/presenter/app_list.h
|
| @@ -0,0 +1,41 @@
|
| +// 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 UI_APP_LIST_PRESENTER_APP_LIST_H_
|
| +#define UI_APP_LIST_PRESENTER_APP_LIST_H_
|
| +
|
| +#include "mojo/public/cpp/bindings/binding_set.h"
|
| +#include "ui/app_list/presenter/app_list_presenter.mojom.h"
|
| +#include "ui/app_list/presenter/app_list_presenter_export.h"
|
| +
|
| +namespace app_list {
|
| +
|
| +// Stores the app list presenter interface pointer.
|
| +class APP_LIST_PRESENTER_EXPORT AppList : public mojom::AppList {
|
| + public:
|
| + AppList();
|
| + ~AppList() override;
|
| +
|
| + // Binds the mojom::AppList interface request to this object.
|
| + void BindRequest(mojom::AppListRequest request);
|
| +
|
| + // Get a raw pointer to the mojom::AppListPresenter interface; may be null.
|
| + mojom::AppListPresenter* GetAppListPresenter();
|
| +
|
| + // mojom::AppList:
|
| + void SetAppListPresenter(mojom::AppListPresenterPtr presenter) override;
|
| +
|
| + private:
|
| + // Bindings for the mojom::AppList interface.
|
| + mojo::BindingSet<mojom::AppList> bindings_;
|
| +
|
| + // App list presenter interface in chrome; used to show/hide the app list.
|
| + mojom::AppListPresenterPtr presenter_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(AppList);
|
| +};
|
| +
|
| +} // namespace app_list
|
| +
|
| +#endif // UI_APP_LIST_PRESENTER_APP_LIST_H_
|
|
|