Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 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 SERVICES_UI_VIEW_MANAGER_VIEW_MANAGER_IMPL_H_ | |
| 6 #define SERVICES_UI_VIEW_MANAGER_VIEW_MANAGER_IMPL_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "mojo/common/strong_binding_set.h" | |
| 10 #include "mojo/services/ui/views/interfaces/view_manager.mojom.h" | |
| 11 #include "services/ui/view_manager/view_registry.h" | |
| 12 | |
| 13 namespace view_manager { | |
| 14 | |
| 15 // ViewManager interface implementation. | |
| 16 class ViewManagerImpl : public mojo::ui::ViewManager { | |
| 17 public: | |
| 18 ViewManagerImpl(ViewRegistry* registry); | |
|
jamesr
2015/10/27 23:13:11
explicit
jeffbrown
2015/10/28 01:37:29
Done.
| |
| 19 ~ViewManagerImpl() override; | |
| 20 | |
| 21 private: | |
| 22 // |ViewManager|: | |
| 23 void RegisterView( | |
| 24 mojo::ui::ViewPtr view, | |
| 25 mojo::InterfaceRequest<mojo::ui::ViewHost> view_host_request, | |
| 26 const RegisterViewCallback& callback) override; | |
| 27 void RegisterViewTree( | |
| 28 mojo::ui::ViewTreePtr view_tree, | |
| 29 mojo::InterfaceRequest<mojo::ui::ViewTreeHost> view_tree_host_request, | |
| 30 const RegisterViewTreeCallback& callback) override; | |
| 31 | |
| 32 ViewRegistry* registry_; | |
| 33 | |
| 34 DISALLOW_COPY_AND_ASSIGN(ViewManagerImpl); | |
| 35 }; | |
| 36 | |
| 37 } // namespace view_manager | |
| 38 | |
| 39 #endif // SERVICES_UI_VIEW_MANAGER_VIEW_MANAGER_IMPL_H_ | |
| OLD | NEW |