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

Unified Diff: services/native_viewport/platform_viewport_android.cc

Issue 1042363003: Makes touch event have a time from android (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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 | « mojo/services/input_events/public/interfaces/input_events.mojom ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/native_viewport/platform_viewport_android.cc
diff --git a/services/native_viewport/platform_viewport_android.cc b/services/native_viewport/platform_viewport_android.cc
index 277007309fc0e78c280930a49b95ee431eaf6323..104c183cfd21e7cda56e694f200838b594b1f824 100644
--- a/services/native_viewport/platform_viewport_android.cc
+++ b/services/native_viewport/platform_viewport_android.cc
@@ -114,6 +114,7 @@ bool PlatformViewportAndroid::TouchEvent(JNIEnv* env,
jfloat h_wheel,
jfloat v_wheel) {
mojo::EventPtr event(mojo::Event::New());
+ event->time_stamp = time_ms;
event->action = MotionEventActionToEventType(masked_action);
if (event->action == mojo::EVENT_TYPE_UNKNOWN)
return false;
« no previous file with comments | « mojo/services/input_events/public/interfaces/input_events.mojom ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698