Chromium Code Reviews| 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..f8d8a6830bf96f60ff3276a86f65d87ebac74329 |
| --- /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 { |
| + |
| +// Interface for setting the app list presenter. |
|
mfomitchev
2016/12/12 22:59:50
Maybe something like this?
Exposes interface for s
msw
2016/12/12 23:47:54
I went with "// Stores the app list presenter inte
|
| +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_ |