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

Side by Side Diff: mojo/ui/view_provider_app.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 | « mojo/ui/gl_renderer_unittest.cc ('k') | mojo/ui/view_provider_app.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 MOJO_UI_VIEW_PROVIDER_APP_H_ 5 #ifndef MOJO_UI_VIEW_PROVIDER_APP_H_
6 #define MOJO_UI_VIEW_PROVIDER_APP_H_ 6 #define MOJO_UI_VIEW_PROVIDER_APP_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "mojo/common/strong_binding_set.h" 10 #include "mojo/common/strong_binding_set.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // 47 //
48 // The |services| parameter is used to receive services from the view 48 // The |services| parameter is used to receive services from the view
49 // on behalf of the caller. 49 // on behalf of the caller.
50 // 50 //
51 // The |exposed_services| parameters is used to provide services to 51 // The |exposed_services| parameters is used to provide services to
52 // the view from the caller. 52 // the view from the caller.
53 virtual void CreateView( 53 virtual void CreateView(
54 const std::string& view_provider_url, 54 const std::string& view_provider_url,
55 mojo::InterfaceRequest<mojo::ui::ViewOwner> view_owner_request, 55 mojo::InterfaceRequest<mojo::ui::ViewOwner> view_owner_request,
56 mojo::InterfaceRequest<mojo::ServiceProvider> services, 56 mojo::InterfaceRequest<mojo::ServiceProvider> services,
57 mojo::ServiceProviderPtr exposed_services) = 0; 57 mojo::InterfaceHandle<mojo::ServiceProvider> exposed_services) = 0;
58 58
59 private: 59 private:
60 class DelegatingViewProvider; 60 class DelegatingViewProvider;
61 61
62 // |InterfaceFactory<mojo::ui::ViewProvider>|: 62 // |InterfaceFactory<mojo::ui::ViewProvider>|:
63 void Create(mojo::ApplicationConnection* connection, 63 void Create(mojo::ApplicationConnection* connection,
64 mojo::InterfaceRequest<mojo::ui::ViewProvider> request) override; 64 mojo::InterfaceRequest<mojo::ui::ViewProvider> request) override;
65 65
66 void CreateView( 66 void CreateView(
67 DelegatingViewProvider* provider, 67 DelegatingViewProvider* provider,
68 const std::string& view_provider_url, 68 const std::string& view_provider_url,
69 mojo::InterfaceRequest<mojo::ui::ViewOwner> view_owner_request, 69 mojo::InterfaceRequest<mojo::ui::ViewOwner> view_owner_request,
70 mojo::InterfaceRequest<mojo::ServiceProvider> services, 70 mojo::InterfaceRequest<mojo::ServiceProvider> services,
71 mojo::ServiceProviderPtr exposed_services); 71 mojo::InterfaceHandle<mojo::ServiceProvider> exposed_services);
72 72
73 mojo::ApplicationImpl* app_impl_ = nullptr; 73 mojo::ApplicationImpl* app_impl_ = nullptr;
74 mojo::StrongBindingSet<mojo::ui::ViewProvider> bindings_; 74 mojo::StrongBindingSet<mojo::ui::ViewProvider> bindings_;
75 75
76 MOJO_DISALLOW_COPY_AND_ASSIGN(ViewProviderApp); 76 MOJO_DISALLOW_COPY_AND_ASSIGN(ViewProviderApp);
77 }; 77 };
78 78
79 } // namespace ui 79 } // namespace ui
80 } // namespace mojo 80 } // namespace mojo
81 81
82 #endif // MOJO_UI_VIEW_PROVIDER_APP_H_ 82 #endif // MOJO_UI_VIEW_PROVIDER_APP_H_
OLDNEW
« no previous file with comments | « mojo/ui/gl_renderer_unittest.cc ('k') | mojo/ui/view_provider_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698