Chromium Code Reviews| Index: content/browser/renderer_host/input/synthetic_gesture_target_android.cc |
| diff --git a/content/browser/renderer_host/input/synthetic_gesture_target_android.cc b/content/browser/renderer_host/input/synthetic_gesture_target_android.cc |
| index cf5181ab93c9240e02d4164525b7ff28537fbc95..944081a3606724c7e492786a6ff066314c54f8ba 100644 |
| --- a/content/browser/renderer_host/input/synthetic_gesture_target_android.cc |
| +++ b/content/browser/renderer_host/input/synthetic_gesture_target_android.cc |
| @@ -37,9 +37,10 @@ void SyntheticGestureTargetAndroid::TouchSetPointer( |
| } |
| void SyntheticGestureTargetAndroid::TouchInject( |
| - JNIEnv* env, Action action, int pointer_count) { |
| + JNIEnv* env, Action action, int pointer_count, double timestamp_in_s) { |
|
jdduke (slow)
2014/01/03 18:24:30
As noted later, let's make this arg |long time_in_
Dominik Grewe
2014/01/06 11:46:07
Done.
|
| Java_TouchEventSynthesizer_inject(env, touch_event_synthesizer_.obj(), |
| - static_cast<int>(action), pointer_count); |
| + static_cast<int>(action), pointer_count, |
| + timestamp_in_s); |
| } |
| void SyntheticGestureTargetAndroid::DispatchWebTouchEventToPlatform( |
| @@ -70,7 +71,7 @@ void SyntheticGestureTargetAndroid::DispatchWebTouchEventToPlatform( |
| TouchSetPointer(env, i, point->position.x, point->position.y, point->id); |
| } |
| - TouchInject(env, action, num_touches); |
| + TouchInject(env, action, num_touches, web_touch.timeStampSeconds); |
| } |
| SyntheticGestureParams::GestureSourceType |