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 ASH_SHELL_EXAMPLE_APP_LIST_PRESENTER_H_ | |
| 6 #define ASH_SHELL_EXAMPLE_APP_LIST_PRESENTER_H_ | |
| 7 | |
| 8 #include "ash/app_list/app_list_presenter_delegate_factory.h" | |
| 9 #include "base/macros.h" | |
| 10 #include "mojo/public/cpp/bindings/binding.h" | |
| 11 #include "ui/app_list/presenter/app_list_presenter.mojom.h" | |
| 12 #include "ui/app_list/presenter/app_list_presenter_impl.h" | |
| 13 #include "ui/app_list/presenter/test/test_app_list_view_delegate_factory.h" | |
| 14 | |
| 15 namespace ash { | |
| 16 namespace shell { | |
| 17 | |
| 18 // An example implementation of AppListPresenter used for ash_shell. | |
|
Daniel Erat
2016/12/22 18:17:57
how will this example class be used? is it a stub
msw
2016/12/23 03:59:34
Hopefully the comment is clear enough, it's used f
| |
| 19 class ExampleAppListPresenter : public app_list::mojom::AppListPresenter { | |
| 20 public: | |
| 21 ExampleAppListPresenter(); | |
| 22 ~ExampleAppListPresenter() override; | |
| 23 | |
| 24 app_list::mojom::AppListPresenterPtr CreateInterfacePtrAndBind(); | |
| 25 | |
| 26 // app_list::mojom::AppListPresenter: | |
| 27 void Show(int64_t display_id) override; | |
| 28 void Dismiss() override; | |
| 29 void ToggleAppList(int64_t display_id) override; | |
| 30 | |
| 31 private: | |
| 32 mojo::Binding<app_list::mojom::AppListPresenter> binding_; | |
| 33 AppListPresenterDelegateFactory app_list_presenter_delegate_factory_; | |
| 34 app_list::AppListPresenterImpl app_list_presenter_impl_; | |
| 35 | |
| 36 DISALLOW_COPY_AND_ASSIGN(ExampleAppListPresenter); | |
| 37 }; | |
| 38 | |
| 39 } // namespace shell | |
| 40 } // namespace ash | |
| 41 | |
| 42 #endif // ASH_SHELL_EXAMPLE_APP_LIST_PRESENTER_H_ | |
| OLD | NEW |