| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WebGestureEvent_h | 5 #ifndef WebGestureEvent_h |
| 6 #define WebGestureEvent_h | 6 #define WebGestureEvent_h |
| 7 | 7 |
| 8 #include "WebGestureDevice.h" | 8 #include "WebGestureDevice.h" |
| 9 #include "WebInputEvent.h" | 9 #include "WebInputEvent.h" |
| 10 | 10 |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 // as a part of fling boost events sequence. | 147 // as a part of fling boost events sequence. |
| 148 bool preventBoosting; | 148 bool preventBoosting; |
| 149 } flingCancel; | 149 } flingCancel; |
| 150 | 150 |
| 151 struct { | 151 struct { |
| 152 bool zoomDisabled; | 152 bool zoomDisabled; |
| 153 float scale; | 153 float scale; |
| 154 } pinchUpdate; | 154 } pinchUpdate; |
| 155 } data; | 155 } data; |
| 156 | 156 |
| 157 WebGestureEvent(Type type, int modifiers, double timeStampSeconds) |
| 158 : WebInputEvent(sizeof(WebGestureEvent), |
| 159 type, |
| 160 modifiers, |
| 161 timeStampSeconds), |
| 162 sourceDevice(WebGestureDeviceUninitialized), |
| 163 resendingPluginId(-1) {} |
| 164 |
| 157 WebGestureEvent() | 165 WebGestureEvent() |
| 158 : WebInputEvent(sizeof(WebGestureEvent)), | 166 : WebInputEvent(sizeof(WebGestureEvent)), |
| 159 x(0), | |
| 160 y(0), | |
| 161 globalX(0), | |
| 162 globalY(0), | |
| 163 sourceDevice(WebGestureDeviceUninitialized), | 167 sourceDevice(WebGestureDeviceUninitialized), |
| 164 resendingPluginId(-1) {} | 168 resendingPluginId(-1) {} |
| 165 }; | 169 }; |
| 166 | 170 |
| 167 #pragma pack(pop) | 171 #pragma pack(pop) |
| 168 | 172 |
| 169 } // namespace blink | 173 } // namespace blink |
| 170 | 174 |
| 171 #endif // WebGestureEvent_h | 175 #endif // WebGestureEvent_h |
| OLD | NEW |