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

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: Applying comments 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
« no previous file with comments | « third_party/WebKit/public/platform/WebPointerProperties.h ('k') | ui/events/event_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « third_party/WebKit/public/platform/WebPointerProperties.h ('k') | ui/events/event_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698