OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ui/events/gesture_detection/gesture_event_data.h" |
| 6 |
| 7 #include "base/logging.h" |
| 8 |
| 9 namespace ui { |
| 10 |
| 11 GestureEventData::GestureEventData() |
| 12 : type(GESTURE_TYPE_INVALID), x(0), y(0) {} |
| 13 |
| 14 GestureEventData::GestureEventData(GestureEventType type, |
| 15 base::TimeTicks time, |
| 16 float x, |
| 17 float y, |
| 18 const Details& details) |
| 19 : type(type), time(time), x(x), y(y), details(details) { |
| 20 DCHECK_NE(GESTURE_TYPE_INVALID, type); |
| 21 } |
| 22 |
| 23 GestureEventData::Details::Details() { memset(this, 0, sizeof(Details)); } |
| 24 |
| 25 } // namespace ui |
OLD | NEW |