Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(414)

Side by Side Diff: services/ui/view_manager/view_manager_impl.h

Issue 1682113003: Mojo C++ bindings: Generate InterfaceHandle<> instead of InterfacePtr<>. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebase ontop of master, address trung's comments Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SERVICES_UI_VIEW_MANAGER_VIEW_MANAGER_IMPL_H_ 5 #ifndef SERVICES_UI_VIEW_MANAGER_VIEW_MANAGER_IMPL_H_
6 #define SERVICES_UI_VIEW_MANAGER_VIEW_MANAGER_IMPL_H_ 6 #define SERVICES_UI_VIEW_MANAGER_VIEW_MANAGER_IMPL_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "mojo/services/ui/views/interfaces/view_manager.mojom.h" 9 #include "mojo/services/ui/views/interfaces/view_manager.mojom.h"
10 #include "services/ui/view_manager/view_registry.h" 10 #include "services/ui/view_manager/view_registry.h"
11 11
12 namespace view_manager { 12 namespace view_manager {
13 13
14 // ViewManager interface implementation. 14 // ViewManager interface implementation.
15 class ViewManagerImpl : public mojo::ui::ViewManager { 15 class ViewManagerImpl : public mojo::ui::ViewManager {
16 public: 16 public:
17 explicit ViewManagerImpl(ViewRegistry* registry); 17 explicit ViewManagerImpl(ViewRegistry* registry);
18 ~ViewManagerImpl() override; 18 ~ViewManagerImpl() override;
19 19
20 private: 20 private:
21 // |ViewManager|: 21 // |ViewManager|:
22 void RegisterView( 22 void RegisterView(
23 mojo::ui::ViewPtr view, 23 mojo::InterfaceHandle<mojo::ui::View> view,
24 mojo::InterfaceRequest<mojo::ui::ViewHost> view_host_request, 24 mojo::InterfaceRequest<mojo::ui::ViewHost> view_host_request,
25 mojo::InterfaceRequest<mojo::ui::ViewOwner> view_owner_request, 25 mojo::InterfaceRequest<mojo::ui::ViewOwner> view_owner_request,
26 const mojo::String& label) override; 26 const mojo::String& label) override;
27 void RegisterViewTree( 27 void RegisterViewTree(
28 mojo::ui::ViewTreePtr view_tree, 28 mojo::InterfaceHandle<mojo::ui::ViewTree> view_tree,
29 mojo::InterfaceRequest<mojo::ui::ViewTreeHost> view_tree_host_request, 29 mojo::InterfaceRequest<mojo::ui::ViewTreeHost> view_tree_host_request,
30 const mojo::String& label) override; 30 const mojo::String& label) override;
31 31
32 ViewRegistry* registry_; 32 ViewRegistry* registry_;
33 33
34 DISALLOW_COPY_AND_ASSIGN(ViewManagerImpl); 34 DISALLOW_COPY_AND_ASSIGN(ViewManagerImpl);
35 }; 35 };
36 36
37 } // namespace view_manager 37 } // namespace view_manager
38 38
39 #endif // SERVICES_UI_VIEW_MANAGER_VIEW_MANAGER_IMPL_H_ 39 #endif // SERVICES_UI_VIEW_MANAGER_VIEW_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « services/ui/view_manager/view_host_impl.cc ('k') | services/ui/view_manager/view_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698