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

Unified Diff: third_party/WebKit/public/platform/WebPointerProperties.h

Issue 2849083002: Add pointer id to the WebMouseEvent's constructors (Closed)
Patch Set: webmouseidd Created 3 years, 8 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: third_party/WebKit/public/platform/WebPointerProperties.h
diff --git a/third_party/WebKit/public/platform/WebPointerProperties.h b/third_party/WebKit/public/platform/WebPointerProperties.h
index 2a453cd22fd7ae5b7a0fc193ec751f6fb9f5aa28..7f1612f04deb94f65c0829b5c5dbbcdfc118f53f 100644
--- a/third_party/WebKit/public/platform/WebPointerProperties.h
+++ b/third_party/WebKit/public/platform/WebPointerProperties.h
@@ -46,8 +46,8 @@ class WebPointerProperties {
kLastEntry = kTouch // Must be the last entry in the list
};
- WebPointerProperties()
- : id(0),
+ WebPointerProperties(int id_param)
sadrul 2017/05/01 15:42:11 explicit
lanwei 2017/05/01 23:51:21 Done.
+ : id(id_param),
force(std::numeric_limits<float>::quiet_NaN()),
tilt_x(0),
tilt_y(0),
@@ -58,8 +58,10 @@ class WebPointerProperties {
movement_x(0),
movement_y(0) {}
- WebPointerProperties(Button button_param, PointerType pointer_type_param)
- : id(0),
+ WebPointerProperties(int id_param,
+ Button button_param,
+ PointerType pointer_type_param)
+ : id(id_param),
force(std::numeric_limits<float>::quiet_NaN()),
tilt_x(0),
tilt_y(0),

Powered by Google App Engine
This is Rietveld 408576698