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

Unified Diff: mojo/examples/sample_app/sample_app.cc

Issue 478523002: mojo events: Add |screen_location| to LocationData. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix crash observed locally because of synthesized aura events. Created 6 years, 4 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 | « mojo/examples/sample_app/gles2_client_impl.cc ('k') | mojo/mojo_services.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/examples/sample_app/sample_app.cc
diff --git a/mojo/examples/sample_app/sample_app.cc b/mojo/examples/sample_app/sample_app.cc
index 222205a3baa76a25b4904612ad3e8fa5f1b9526c..ceebd61b88b5fa4541066af6cfd167bc03c53e89 100644
--- a/mojo/examples/sample_app/sample_app.cc
+++ b/mojo/examples/sample_app/sample_app.cc
@@ -63,7 +63,7 @@ class SampleApp : public mojo::ApplicationDelegate,
virtual void OnEvent(mojo::EventPtr event,
const mojo::Callback<void()>& callback) MOJO_OVERRIDE {
assert(event);
- if (event->location)
+ if (event->location_data && event->location_data->in_view_location)
gles2_client_->HandleInputEvent(*event);
callback.Run();
}
« no previous file with comments | « mojo/examples/sample_app/gles2_client_impl.cc ('k') | mojo/mojo_services.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698