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

Unified Diff: examples/ui/noodles/noodles_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/noodles/noodles_view.h ('k') | examples/ui/pdf_viewer/pdf_viewer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/ui/noodles/noodles_view.cc
diff --git a/examples/ui/noodles/noodles_view.cc b/examples/ui/noodles/noodles_view.cc
index 921e00af56ca0e482fa140545c833518ca95757b..ad85dedb00eaa3f0fb34540926a42a4b5c65e57b 100644
--- a/examples/ui/noodles/noodles_view.cc
+++ b/examples/ui/noodles/noodles_view.cc
@@ -50,8 +50,8 @@ void Lissajous(SkPath* path, double ax, double ay, int wx, int wy, double p) {
NoodlesView::NoodlesView(
mojo::ApplicationImpl* app_impl,
- const mojo::ui::ViewProvider::CreateViewCallback& create_view_callback)
- : BaseView(app_impl, "Noodles", create_view_callback),
+ mojo::InterfaceRequest<mojo::ui::ViewOwner> view_owner_request)
+ : BaseView(app_impl, view_owner_request.Pass(), "Noodles"),
choreographer_(scene(), this),
frame_queue_(std::make_shared<FrameQueue>()),
rasterizer_delegate_(
« no previous file with comments | « examples/ui/noodles/noodles_view.h ('k') | examples/ui/pdf_viewer/pdf_viewer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698