Index: content/common/input/synthetic_web_input_event_builders.cc |
diff --git a/content/common/input/synthetic_web_input_event_builders.cc b/content/common/input/synthetic_web_input_event_builders.cc |
index 1bdea994878ebc401e5949d0304dd2189674c947..d0642341241b45ec20769c1ca88a9e2e77be37a2 100644 |
--- a/content/common/input/synthetic_web_input_event_builders.cc |
+++ b/content/common/input/synthetic_web_input_event_builders.cc |
@@ -123,12 +123,15 @@ WebGestureEvent SyntheticWebGestureEventBuilder::BuildPinchUpdate( |
float scale, |
float anchor_x, |
float anchor_y, |
- int modifiers) { |
- WebGestureEvent result = Build(WebInputEvent::GesturePinchUpdate, |
- WebGestureEvent::Touchscreen); |
+ int modifiers, |
+ WebGestureEvent::SourceDevice sourceDevice) { |
+ WebGestureEvent result = |
+ Build(WebInputEvent::GesturePinchUpdate, sourceDevice); |
result.data.pinchUpdate.scale = scale; |
result.x = anchor_x; |
result.y = anchor_y; |
+ result.globalX = anchor_x; |
+ result.globalY = anchor_y; |
result.modifiers = modifiers; |
return result; |
} |