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

Unified Diff: content/shell/test_runner/event_sender.cc

Issue 2925883003: [Touch Adjustment] Pass primary_pointer_type to WebGestureEvent and disable adjustment for stylus (Closed)
Patch Set: Add layout test; Update comments; Remove ctor Created 3 years, 6 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: content/shell/test_runner/event_sender.cc
diff --git a/content/shell/test_runner/event_sender.cc b/content/shell/test_runner/event_sender.cc
index 02ece2fb7ec769e0b7677631844de2ee87fdb573..2f951c0cdc9c377a87d3ab6a4bec90a21e23596a 100644
--- a/content/shell/test_runner/event_sender.cc
+++ b/content/shell/test_runner/event_sender.cc
@@ -2525,6 +2525,7 @@ void EventSender::GestureEvent(WebInputEvent::Type type, gin::Arguments* args) {
}
event.unique_touch_event_id = GetUniqueTouchEventId(args);
+ getPointerType(args, false, event.primary_pointer_type);
dtapuska 2017/06/16 14:49:35 You should probably check if there args and whethe
chongz 2017/06/16 15:34:00 Done.
event.global_x = event.x;
event.global_y = event.y;

Powered by Google App Engine
This is Rietveld 408576698