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

Unified Diff: ui/events/ozone/evdev/libgestures_glue/gesture_interpreter_libevdev_cros.cc

Issue 566673003: ozone: events: Centralize & document our NativeEvent woes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « no previous file | ui/events/ozone/events_ozone.h » ('j') | ui/events/ozone/events_ozone.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/evdev/libgestures_glue/gesture_interpreter_libevdev_cros.cc
diff --git a/ui/events/ozone/evdev/libgestures_glue/gesture_interpreter_libevdev_cros.cc b/ui/events/ozone/evdev/libgestures_glue/gesture_interpreter_libevdev_cros.cc
index b8c990d399f76da5f779870102aa32d3d2096db3..59d8735cc5371d693c5d7b16b3cec8e76eaa073f 100644
--- a/ui/events/ozone/evdev/libgestures_glue/gesture_interpreter_libevdev_cros.cc
+++ b/ui/events/ozone/evdev/libgestures_glue/gesture_interpreter_libevdev_cros.cc
@@ -392,11 +392,7 @@ void GestureInterpreterLibevdevCros::DispatchMouseButton(unsigned int modifier,
EventType type = (down ? ET_MOUSE_PRESSED : ET_MOUSE_RELEASED);
modifiers_->UpdateModifier(modifier, down);
MouseEvent event(type, loc, loc, modifiers_->GetModifierFlags() | flag, flag);
-
- // This hack is necessary to trigger setting the repeat count.
- // TODO(spang): Fix it.
- MouseEvent event2(&event);
- Dispatch(&event2);
+ Dispatch(&event);
}
} // namespace ui
« no previous file with comments | « no previous file | ui/events/ozone/events_ozone.h » ('j') | ui/events/ozone/events_ozone.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698