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

Unified Diff: components/test_runner/event_sender.cc

Issue 1403893003: Plumb gesture source value through Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add GestureEventStreamValidator source device compatibility check. Created 5 years, 2 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
Index: components/test_runner/event_sender.cc
diff --git a/components/test_runner/event_sender.cc b/components/test_runner/event_sender.cc
index 958fadd651c703b5e14e7d048a3aa54ef39d0ccd..9560ea3393c47a9f3fd54a3636348736a5bc9da2 100644
--- a/components/test_runner/event_sender.cc
+++ b/components/test_runner/event_sender.cc
@@ -1663,6 +1663,10 @@ void EventSender::DumpFilenameBeingDragged() {
void EventSender::GestureFlingCancel() {
WebGestureEvent event;
event.type = WebInputEvent::GestureFlingCancel;
+ // Generally it won't matter what device we use here, and since it might
+ // be cumbersome to expect all callers to specify a device, we'll just
+ // choose Touchpad here.
+ event.sourceDevice = blink::WebGestureDeviceTouchpad;
event.timeStampSeconds = GetCurrentEventTimeSec();
if (force_layout_on_events_)

Powered by Google App Engine
This is Rietveld 408576698