| 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 1252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1263 y_offset_ordinal_ *= factor; | 1263 y_offset_ordinal_ *= factor; |
| 1264 } | 1264 } |
| 1265 | 1265 |
| 1266 //////////////////////////////////////////////////////////////////////////////// | 1266 //////////////////////////////////////////////////////////////////////////////// |
| 1267 // GestureEvent | 1267 // GestureEvent |
| 1268 | 1268 |
| 1269 GestureEvent::GestureEvent(float x, | 1269 GestureEvent::GestureEvent(float x, |
| 1270 float y, | 1270 float y, |
| 1271 int flags, | 1271 int flags, |
| 1272 base::TimeDelta time_stamp, | 1272 base::TimeDelta time_stamp, |
| 1273 const GestureEventDetails& details) | 1273 const GestureEventDetails& details, |
| 1274 uint32_t unique_touch_event_id) |
| 1274 : LocatedEvent(details.type(), | 1275 : LocatedEvent(details.type(), |
| 1275 gfx::PointF(x, y), | 1276 gfx::PointF(x, y), |
| 1276 gfx::PointF(x, y), | 1277 gfx::PointF(x, y), |
| 1277 time_stamp, | 1278 time_stamp, |
| 1278 flags | EF_FROM_TOUCH), | 1279 flags | EF_FROM_TOUCH), |
| 1279 details_(details) { | 1280 details_(details), |
| 1281 unique_touch_event_id_(unique_touch_event_id) { |
| 1280 } | 1282 } |
| 1281 | 1283 |
| 1282 GestureEvent::~GestureEvent() { | 1284 GestureEvent::~GestureEvent() { |
| 1283 } | 1285 } |
| 1284 | 1286 |
| 1285 } // namespace ui | 1287 } // namespace ui |
| OLD | NEW |