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

Unified Diff: examples/ui/shapes/shapes_app.cc

Issue 1679023006: Reify view ownership as a message pipe. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « examples/ui/shapes/shapes_app.h ('k') | examples/ui/shapes/shapes_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/ui/shapes/shapes_app.cc
diff --git a/examples/ui/shapes/shapes_app.cc b/examples/ui/shapes/shapes_app.cc
index 86443a1a0c37e0eb3f10669fc048b7df278b1176..917c2741f2027857119b4b72e86774eee93592d9 100644
--- a/examples/ui/shapes/shapes_app.cc
+++ b/examples/ui/shapes/shapes_app.cc
@@ -12,13 +12,12 @@ ShapesApp::ShapesApp() {}
ShapesApp::~ShapesApp() {}
-bool ShapesApp::CreateView(
+void ShapesApp::CreateView(
const std::string& connection_url,
+ mojo::InterfaceRequest<mojo::ui::ViewOwner> view_owner_request,
mojo::InterfaceRequest<mojo::ServiceProvider> services,
- mojo::ServiceProviderPtr exposed_services,
- const mojo::ui::ViewProvider::CreateViewCallback& callback) {
- new ShapesView(app_impl(), callback);
- return true;
+ mojo::ServiceProviderPtr exposed_services) {
+ new ShapesView(app_impl(), view_owner_request.Pass());
}
} // namespace examples
« no previous file with comments | « examples/ui/shapes/shapes_app.h ('k') | examples/ui/shapes/shapes_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698