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

Unified Diff: examples/ui/spinning_cube/spinning_cube_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 | « examples/ui/spinning_cube/spinning_cube_view.h ('k') | examples/ui/tile/tile_app.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/ui/spinning_cube/spinning_cube_view.cc
diff --git a/examples/ui/spinning_cube/spinning_cube_view.cc b/examples/ui/spinning_cube/spinning_cube_view.cc
index 68fb4f637995d3b5873efc29fcf5ee7cc758ad4b..294d328d5af015ec9964ab503ad3924b05ef094f 100644
--- a/examples/ui/spinning_cube/spinning_cube_view.cc
+++ b/examples/ui/spinning_cube/spinning_cube_view.cc
@@ -54,8 +54,8 @@ int GetEventDirection(const mojo::PointF& current,
SpinningCubeView::SpinningCubeView(
mojo::ApplicationImpl* app_impl,
- const mojo::ui::ViewProvider::CreateViewCallback& create_view_callback)
- : GLView(app_impl, "SpinningCube", create_view_callback),
+ mojo::InterfaceRequest<mojo::ui::ViewOwner> view_owner_request)
+ : GLView(app_impl, view_owner_request.Pass(), "SpinningCube"),
choreographer_(scene(), this),
input_handler_(view_service_provider(), this),
weak_ptr_factory_(this) {
« no previous file with comments | « examples/ui/spinning_cube/spinning_cube_view.h ('k') | examples/ui/tile/tile_app.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698