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

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: Make compilers happy. 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 a2e55d58e54f67f67dc8ac9ea62e324be0a0b264..6fc0f131806bc85306ff9ce33d8a6208654cf50b 100644
--- a/components/test_runner/event_sender.cc
+++ b/components/test_runner/event_sender.cc
@@ -1657,6 +1657,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