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

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: rebase ontop of master, address trung's comments 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/spinning_cube/gles2_client_impl.cc ('k') | examples/ui/noodles/noodles_app.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..15b208a018091746b3c33b041558769b89b78fd9 100644
--- a/examples/spinning_cube/spinning_cube_app.cc
+++ b/examples/spinning_cube/spinning_cube_app.cc
@@ -5,6 +5,7 @@
#include <assert.h>
#include <memory>
+#include <utility>
#include "base/bind.h"
#include "base/memory/scoped_ptr.h"
@@ -75,9 +76,9 @@ class SpinningCubeApp : public mojo::ApplicationDelegate,
private:
void SetEventDispatcher() {
- mojo::NativeViewportEventDispatcherPtr ptr;
+ mojo::InterfaceHandle<mojo::NativeViewportEventDispatcher> ptr;
dispatcher_binding_.Bind(GetProxy(&ptr));
- viewport_->SetEventDispatcher(ptr.Pass());
+ viewport_->SetEventDispatcher(std::move(ptr));
}
void OnViewportConnectionError() { mojo::RunLoop::current()->Quit(); }
« no previous file with comments | « examples/spinning_cube/gles2_client_impl.cc ('k') | examples/ui/noodles/noodles_app.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698