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

Unified Diff: apps/moterm/moterm_view.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 | « apps/moterm/moterm_view.h ('k') | examples/moterm_example_app/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/moterm/moterm_view.cc
diff --git a/apps/moterm/moterm_view.cc b/apps/moterm/moterm_view.cc
index 4f992cc983e5fafbecb2a80e6306767de7729293..30b8e9434a172b9e72d468ae2163012baa4dac4c 100644
--- a/apps/moterm/moterm_view.cc
+++ b/apps/moterm/moterm_view.cc
@@ -38,9 +38,9 @@ constexpr uint32_t kRootNodeId = mojo::gfx::composition::kSceneRootNodeId;
MotermView::MotermView(
mojo::ApplicationImpl* app_impl,
- mojo::InterfaceRequest<mojo::ServiceProvider> service_provider_request,
- const mojo::ui::ViewProvider::CreateViewCallback& create_view_callback)
- : GaneshView(app_impl, "Moterm", create_view_callback),
+ mojo::InterfaceRequest<mojo::ui::ViewOwner> view_owner_request,
+ mojo::InterfaceRequest<mojo::ServiceProvider> service_provider_request)
+ : GaneshView(app_impl, view_owner_request.Pass(), "Moterm"),
choreographer_(scene(), this),
input_handler_(view_service_provider(), this),
model_(MotermModel::Size(240, 160), MotermModel::Size(24, 80), this),
« no previous file with comments | « apps/moterm/moterm_view.h ('k') | examples/moterm_example_app/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698