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

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: dtapuska's comment: Fix layout test instead 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..8402ed23099581f20da28f41e35a05ea52fc137c 100644
--- a/content/shell/test_runner/event_sender.cc
+++ b/content/shell/test_runner/event_sender.cc
@@ -2525,6 +2525,8 @@ void EventSender::GestureEvent(WebInputEvent::Type type, gin::Arguments* args) {
}
event.unique_touch_event_id = GetUniqueTouchEventId(args);
+ if (!getPointerType(args, false, event.primary_pointer_type))
chongz 2017/06/19 19:46:04 dtapuska@ Are you ok with this style or do you wan
dtapuska 2017/06/23 17:11:11 this style is fine.
dtapuska 2017/06/23 17:14:37 Well really whomever added getPointerType should h
chongz 2017/06/23 17:39:13 Sure I will change it to |GetPointerType| in next
chongz 2017/06/27 20:13:12 Done. Changed to |GetPointerType|.
+ return;
event.global_x = event.x;
event.global_y = event.y;

Powered by Google App Engine
This is Rietveld 408576698