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

Unified Diff: ui/events/gesture_event_details.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: ui/events/gesture_event_details.cc
diff --git a/ui/events/gesture_event_details.cc b/ui/events/gesture_event_details.cc
index 3203fd4ec77128721a26054be3febfcdfb50e572..9f4d2b9c9b62dfab0b39fba918832822aa8753dc 100644
--- a/ui/events/gesture_event_details.cc
+++ b/ui/events/gesture_event_details.cc
@@ -9,11 +9,13 @@ namespace ui {
GestureEventDetails::GestureEventDetails()
: type_(ET_UNKNOWN),
device_type_(GestureDeviceType::DEVICE_UNKNOWN),
+ primary_pointer_type_(EventPointerType::POINTER_TYPE_UNKNOWN),
touch_points_(0) {}
GestureEventDetails::GestureEventDetails(ui::EventType type)
: type_(type),
device_type_(GestureDeviceType::DEVICE_UNKNOWN),
+ primary_pointer_type_(EventPointerType::POINTER_TYPE_UNKNOWN),
touch_points_(1) {
DCHECK_GE(type, ET_GESTURE_TYPE_START);
DCHECK_LE(type, ET_GESTURE_TYPE_END);
@@ -25,6 +27,7 @@ GestureEventDetails::GestureEventDetails(ui::EventType type,
ScrollUnits units)
: type_(type),
device_type_(GestureDeviceType::DEVICE_UNKNOWN),
+ primary_pointer_type_(EventPointerType::POINTER_TYPE_UNKNOWN),
touch_points_(1) {
DCHECK_GE(type, ET_GESTURE_TYPE_START);
DCHECK_LE(type, ET_GESTURE_TYPE_END);
@@ -68,6 +71,7 @@ GestureEventDetails::GestureEventDetails(ui::EventType type,
: type_(type),
data_(other.data_),
device_type_(other.device_type_),
+ primary_pointer_type_(other.primary_pointer_type_),
touch_points_(other.touch_points_),
bounding_box_(other.bounding_box_) {
DCHECK_GE(type, ET_GESTURE_TYPE_START);
« third_party/WebKit/public/platform/WebGestureEvent.h ('K') | « ui/events/gesture_event_details.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698