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

Unified Diff: examples/spinning_cube/spinning_cube_app.cc

Issue 1033513003: Cleans up events to just the parts we're actually using (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: cleanup Created 5 years, 9 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/wm_flow/app/app.cc » ('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 a239496b8f91f5947950af5a4f08c9c35e3c90d0..1c8d145fdffda7b1e253b1a11b08e6502eedc986 100644
--- a/examples/spinning_cube/spinning_cube_app.cc
+++ b/examples/spinning_cube/spinning_cube_app.cc
@@ -62,7 +62,7 @@ class SpinningCubeApp : public mojo::ApplicationDelegate,
void OnEvent(mojo::EventPtr event,
const mojo::Callback<void()>& callback) override {
assert(event);
- if (event->location_data && event->location_data->in_view_location)
+ if (event->pointer_data.get())
gles2_client_->HandleInputEvent(*event);
callback.Run();
}
« no previous file with comments | « examples/spinning_cube/gles2_client_impl.cc ('k') | examples/wm_flow/app/app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698