Chromium Code Reviews| 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), |