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

Side by Side Diff: services/ui/view_manager/view_tree_host_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
« no previous file with comments | « services/ui/view_manager/view_stub.cc ('k') | services/ui/view_manager/view_tree_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_TREE_HOST_IMPL_H_ 5 #ifndef SERVICES_UI_VIEW_MANAGER_VIEW_TREE_HOST_IMPL_H_
6 #define SERVICES_UI_VIEW_MANAGER_VIEW_TREE_HOST_IMPL_H_ 6 #define SERVICES_UI_VIEW_MANAGER_VIEW_TREE_HOST_IMPL_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "mojo/common/binding_set.h" 9 #include "mojo/common/binding_set.h"
10 #include "mojo/services/ui/views/interfaces/view_trees.mojom.h" 10 #include "mojo/services/ui/views/interfaces/view_trees.mojom.h"
(...skipping 10 matching lines...) Expand all
21 public: 21 public:
22 ViewTreeHostImpl(ViewRegistry* registry, ViewTreeState* state); 22 ViewTreeHostImpl(ViewRegistry* registry, ViewTreeState* state);
23 ~ViewTreeHostImpl() override; 23 ~ViewTreeHostImpl() override;
24 24
25 private: 25 private:
26 // |ViewTreeHost|: 26 // |ViewTreeHost|:
27 void GetToken(const GetTokenCallback& callback) override; 27 void GetToken(const GetTokenCallback& callback) override;
28 void GetServiceProvider( 28 void GetServiceProvider(
29 mojo::InterfaceRequest<mojo::ServiceProvider> service_provider) override; 29 mojo::InterfaceRequest<mojo::ServiceProvider> service_provider) override;
30 void RequestLayout() override; 30 void RequestLayout() override;
31 void SetRoot(uint32_t root_key, 31 void SetRoot(
32 mojo::ui::ViewOwnerPtr root_view_owner) override; 32 uint32_t root_key,
33 mojo::InterfaceHandle<mojo::ui::ViewOwner> root_view_owner) override;
33 void ResetRoot(mojo::InterfaceRequest<mojo::ui::ViewOwner> 34 void ResetRoot(mojo::InterfaceRequest<mojo::ui::ViewOwner>
34 transferred_view_owner_request) override; 35 transferred_view_owner_request) override;
35 void LayoutRoot(mojo::ui::ViewLayoutParamsPtr root_layout_params, 36 void LayoutRoot(mojo::ui::ViewLayoutParamsPtr root_layout_params,
36 const LayoutRootCallback& callback) override; 37 const LayoutRootCallback& callback) override;
37 38
38 // |ServiceProvider|: 39 // |ServiceProvider|:
39 void ConnectToService(const mojo::String& service_name, 40 void ConnectToService(const mojo::String& service_name,
40 mojo::ScopedMessagePipeHandle client_handle) override; 41 mojo::ScopedMessagePipeHandle client_handle) override;
41 42
42 ViewRegistry* const registry_; 43 ViewRegistry* const registry_;
43 ViewTreeState* const state_; 44 ViewTreeState* const state_;
44 mojo::BindingSet<mojo::ServiceProvider> service_provider_bindings_; 45 mojo::BindingSet<mojo::ServiceProvider> service_provider_bindings_;
45 46
46 DISALLOW_COPY_AND_ASSIGN(ViewTreeHostImpl); 47 DISALLOW_COPY_AND_ASSIGN(ViewTreeHostImpl);
47 }; 48 };
48 49
49 } // namespace view_manager 50 } // namespace view_manager
50 51
51 #endif // SERVICES_UI_VIEW_MANAGER_VIEW_TREE_HOST_IMPL_H_ 52 #endif // SERVICES_UI_VIEW_MANAGER_VIEW_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « services/ui/view_manager/view_stub.cc ('k') | services/ui/view_manager/view_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698