Chromium Code Reviews| 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 UI_APP_LIST_PRESENTER_APP_LIST_H_ | |
| 6 #define UI_APP_LIST_PRESENTER_APP_LIST_H_ | |
| 7 | |
| 8 #include "mojo/public/cpp/bindings/binding_set.h" | |
| 9 #include "ui/app_list/presenter/app_list_presenter.mojom.h" | |
| 10 #include "ui/app_list/presenter/app_list_presenter_export.h" | |
| 11 | |
| 12 namespace app_list { | |
| 13 | |
| 14 // 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
| |
| 15 class APP_LIST_PRESENTER_EXPORT AppList : public mojom::AppList { | |
| 16 public: | |
| 17 AppList(); | |
| 18 ~AppList() override; | |
| 19 | |
| 20 // Binds the mojom::AppList interface request to this object. | |
| 21 void BindRequest(mojom::AppListRequest request); | |
| 22 | |
| 23 // Get a raw pointer to the mojom::AppListPresenter interface; may be null. | |
| 24 mojom::AppListPresenter* GetAppListPresenter(); | |
| 25 | |
| 26 // mojom::AppList: | |
| 27 void SetAppListPresenter(mojom::AppListPresenterPtr presenter) override; | |
| 28 | |
| 29 private: | |
| 30 // Bindings for the mojom::AppList interface. | |
| 31 mojo::BindingSet<mojom::AppList> bindings_; | |
| 32 | |
| 33 // App list presenter interface in chrome; used to show/hide the app list. | |
| 34 mojom::AppListPresenterPtr presenter_; | |
| 35 | |
| 36 DISALLOW_COPY_AND_ASSIGN(AppList); | |
| 37 }; | |
| 38 | |
| 39 } // namespace app_list | |
| 40 | |
| 41 #endif // UI_APP_LIST_PRESENTER_APP_LIST_H_ | |
| OLD | NEW |