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

Unified Diff: examples/spinning_cube/spinning_cube_app.cc

Issue 1682113003: Mojo C++ bindings: Generate InterfaceHandle<> instead of InterfacePtr<>. (Closed) Base URL: https://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
Index: examples/spinning_cube/spinning_cube_app.cc
diff --git a/examples/spinning_cube/spinning_cube_app.cc b/examples/spinning_cube/spinning_cube_app.cc
index f90f9d1c28f3353c9fd8d5b5cfc6b444365919c6..c8b477a07f4531cfe78949a28f608e94efd52c47 100644
--- a/examples/spinning_cube/spinning_cube_app.cc
+++ b/examples/spinning_cube/spinning_cube_app.cc
@@ -77,7 +77,7 @@ class SpinningCubeApp : public mojo::ApplicationDelegate,
void SetEventDispatcher() {
mojo::NativeViewportEventDispatcherPtr ptr;
dispatcher_binding_.Bind(GetProxy(&ptr));
- viewport_->SetEventDispatcher(ptr.Pass());
+ viewport_->SetEventDispatcher(ptr.PassInterfaceHandle());
viettrungluu 2016/02/10 01:04:08 So, this seems kind of dumb: GetProxy() makes a m
vardhan 2016/02/11 22:47:53 Done.
}
void OnViewportConnectionError() { mojo::RunLoop::current()->Quit(); }

Powered by Google App Engine
This is Rietveld 408576698