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

Unified Diff: mojo/converters/blink/blink_input_events_type_converters_unittest.cc

Issue 2287403002: Create MouseWheelEvent directly instead of through MouseEvent. (Closed)
Patch Set: test Created 4 years, 4 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 | « content/browser/renderer_host/input/synthetic_gesture_target_aura.cc ('k') | ui/events/event.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/converters/blink/blink_input_events_type_converters_unittest.cc
diff --git a/mojo/converters/blink/blink_input_events_type_converters_unittest.cc b/mojo/converters/blink/blink_input_events_type_converters_unittest.cc
index d00405496ef44055d40ce8cb0b9f23b01ffbb850..bebe984f34965d7430b670b6dc8e387b3472dbfa 100644
--- a/mojo/converters/blink/blink_input_events_type_converters_unittest.cc
+++ b/mojo/converters/blink/blink_input_events_type_converters_unittest.cc
@@ -43,10 +43,8 @@ TEST(BlinkInputEventsConvertersTest, KeyEvent) {
TEST(BlinkInputEventsConvertersTest, WheelEvent) {
const int kDeltaX = 14;
const int kDeltaY = -3;
- ui::MouseWheelEvent ui_event(
- ui::MouseEvent(ui::ET_MOUSEWHEEL, gfx::Point(), gfx::Point(),
- base::TimeTicks(), 0, 0),
- kDeltaX, kDeltaY);
+ ui::MouseWheelEvent ui_event(gfx::Vector2d(kDeltaX, kDeltaY), gfx::Point(),
+ gfx::Point(), base::TimeTicks(), 0, 0);
ui::PointerEvent pointer_event(ui_event);
const std::unique_ptr<blink::WebInputEvent> web_event(
TypeConverter<std::unique_ptr<blink::WebInputEvent>, ui::Event>::Convert(
« no previous file with comments | « content/browser/renderer_host/input/synthetic_gesture_target_aura.cc ('k') | ui/events/event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698