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

Unified Diff: ui/events/event.h

Issue 1617863002: Set the correct pressure for pointer events based on force (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix the tests Created 4 years, 11 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/event.h
diff --git a/ui/events/event.h b/ui/events/event.h
index dd3ce7fd6bd33344f1fd0f1bedb3526b96cf7011..781b0ef6666e941fab2f6836c741eb9d1555f626 100644
--- a/ui/events/event.h
+++ b/ui/events/event.h
@@ -331,7 +331,8 @@ class EVENTS_EXPORT PointerDetails {
public:
PointerDetails() {}
explicit PointerDetails(EventPointerType pointer_type)
- : pointer_type_(pointer_type) {}
+ : pointer_type_(pointer_type),
+ force_(std::numeric_limits<float>::quiet_NaN()) {}
PointerDetails(EventPointerType pointer_type,
float radius_x,
float radius_y,

Powered by Google App Engine
This is Rietveld 408576698