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

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

Issue 2256343003: Update ui::PointerEvent to support mouse wheel and capture change events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 | « mojo/converters/blink/blink_input_events_type_converters.cc ('k') | services/ui/ws/event_dispatcher.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 40d9c021309da3372918175d73c019c13ae7389e..d00405496ef44055d40ce8cb0b9f23b01ffbb850 100644
--- a/mojo/converters/blink/blink_input_events_type_converters_unittest.cc
+++ b/mojo/converters/blink/blink_input_events_type_converters_unittest.cc
@@ -47,9 +47,10 @@ TEST(BlinkInputEventsConvertersTest, WheelEvent) {
ui::MouseEvent(ui::ET_MOUSEWHEEL, gfx::Point(), gfx::Point(),
base::TimeTicks(), 0, 0),
kDeltaX, kDeltaY);
+ ui::PointerEvent pointer_event(ui_event);
const std::unique_ptr<blink::WebInputEvent> web_event(
TypeConverter<std::unique_ptr<blink::WebInputEvent>, ui::Event>::Convert(
- ui_event));
+ pointer_event));
ASSERT_TRUE(web_event);
ASSERT_EQ(blink::WebInputEvent::MouseWheel, web_event->type);
ASSERT_EQ(0, web_event->modifiers);
« no previous file with comments | « mojo/converters/blink/blink_input_events_type_converters.cc ('k') | services/ui/ws/event_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698