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 4ba93d317694707f1fa2428ab3a079b60e8dcd6e..c68c689c09be8fa8ac679127f4477d997c4d25cf 100644 |
--- a/content/common/input/synthetic_web_input_event_builders.cc |
+++ b/content/common/input/synthetic_web_input_event_builders.cc |
@@ -61,8 +61,21 @@ WebMouseWheelEvent SyntheticWebMouseWheelEventBuilder::Build(float x, |
float dy, |
int modifiers, |
bool precise) { |
+ return Build(x, y, 0, 0, dx, dy, modifiers, precise); |
+} |
+ |
+WebMouseWheelEvent SyntheticWebMouseWheelEventBuilder::Build(float x, |
+ float y, |
+ float global_x, |
+ float global_y, |
+ float dx, |
+ float dy, |
+ int modifiers, |
+ bool precise) { |
WebMouseWheelEvent result; |
result.type = WebInputEvent::MouseWheel; |
+ result.globalX = global_x; |
+ result.globalY = global_y; |
result.x = x; |
result.y = y; |
result.deltaX = dx; |