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

Unified Diff: chrome/browser/android/vr_shell/vr_input_manager.cc

Issue 2622333002: VR: Fix timing of tap event (Closed)
Patch Set: VR: Fix timing of tap event Created 3 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/vr_input_manager.cc
diff --git a/chrome/browser/android/vr_shell/vr_input_manager.cc b/chrome/browser/android/vr_shell/vr_input_manager.cc
index 92f5beef2fc1d1e5e3001c0dded713d538a686c8..62b3aafb9d67392eafa745edd87d523449f908e6 100644
--- a/chrome/browser/android/vr_shell/vr_input_manager.cc
+++ b/chrome/browser/android/vr_shell/vr_input_manager.cc
@@ -18,14 +18,14 @@ namespace vr_shell {
namespace {
WebGestureEvent MakeGestureEvent(WebInputEvent::Type type,
- int64_t time_ms,
+ double time,
float x,
float y) {
WebGestureEvent result;
result.type = type;
result.x = x;
result.y = y;
- result.timeStampSeconds = time_ms / 1000.0;
+ result.timeStampSeconds = time;
result.sourceDevice = blink::WebGestureDeviceTouchpad;
return result;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698