| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "ui/events/event.h" | 5 #include "ui/events/event.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 | 10 |
| (...skipping 1259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1270 y_offset_ordinal_ *= factor; | 1270 y_offset_ordinal_ *= factor; |
| 1271 } | 1271 } |
| 1272 | 1272 |
| 1273 //////////////////////////////////////////////////////////////////////////////// | 1273 //////////////////////////////////////////////////////////////////////////////// |
| 1274 // GestureEvent | 1274 // GestureEvent |
| 1275 | 1275 |
| 1276 GestureEvent::GestureEvent(float x, | 1276 GestureEvent::GestureEvent(float x, |
| 1277 float y, | 1277 float y, |
| 1278 int flags, | 1278 int flags, |
| 1279 base::TimeTicks time_stamp, | 1279 base::TimeTicks time_stamp, |
| 1280 const GestureEventDetails& details) | 1280 const GestureEventDetails& details, |
| 1281 uint32_t unique_touch_event_id) |
| 1281 : LocatedEvent(details.type(), | 1282 : LocatedEvent(details.type(), |
| 1282 gfx::PointF(x, y), | 1283 gfx::PointF(x, y), |
| 1283 gfx::PointF(x, y), | 1284 gfx::PointF(x, y), |
| 1284 time_stamp, | 1285 time_stamp, |
| 1285 flags | EF_FROM_TOUCH), | 1286 flags | EF_FROM_TOUCH), |
| 1286 details_(details) {} | 1287 details_(details), |
| 1288 unique_touch_event_id_(unique_touch_event_id) {} |
| 1287 | 1289 |
| 1288 GestureEvent::~GestureEvent() { | 1290 GestureEvent::~GestureEvent() { |
| 1289 } | 1291 } |
| 1290 | 1292 |
| 1291 } // namespace ui | 1293 } // namespace ui |
| OLD | NEW |