Index: ui/events/test/event_generator.cc |
diff --git a/ui/events/test/event_generator.cc b/ui/events/test/event_generator.cc |
index 1eb461fe73ad85b77dce1c6f30f8e63d5570a65b..e308463ed606e1f5873676f5ce415b476d033ae4 100644 |
--- a/ui/events/test/event_generator.cc |
+++ b/ui/events/test/event_generator.cc |
@@ -166,9 +166,8 @@ void EventGenerator::ReleaseRightButton() { |
void EventGenerator::MoveMouseWheel(int delta_x, int delta_y) { |
gfx::Point location = GetLocationInCurrentRoot(); |
- ui::MouseEvent mouseev(ui::ET_MOUSEWHEEL, location, location, |
- ui::EventTimeForNow(), flags_, 0); |
- ui::MouseWheelEvent wheelev(mouseev, delta_x, delta_y); |
+ ui::MouseWheelEvent wheelev(gfx::Vector2d(delta_x, delta_y), location, |
+ location, ui::EventTimeForNow(), flags_, 0); |
Dispatch(&wheelev); |
} |