Index: ui/events/gesture_detection/gesture_event_data.cc |
diff --git a/ui/events/gesture_detection/gesture_event_data.cc b/ui/events/gesture_detection/gesture_event_data.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3f0fea873fe42dee79ab282fdb7386c7b6ad714b |
--- /dev/null |
+++ b/ui/events/gesture_detection/gesture_event_data.cc |
@@ -0,0 +1,25 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "ui/events/gesture_detection/gesture_event_data.h" |
+ |
+#include "base/logging.h" |
+ |
+namespace ui { |
+ |
+GestureEventData::GestureEventData() |
+ : type(GESTURE_TYPE_INVALID), x(0), y(0) {} |
+ |
+GestureEventData::GestureEventData(GestureEventType type, |
+ base::TimeTicks time, |
+ float x, |
+ float y, |
+ const Details& details) |
+ : type(type), time(time), x(x), y(y), details(details) { |
+ DCHECK_NE(GESTURE_TYPE_INVALID, type); |
+} |
+ |
+GestureEventData::Details::Details() { memset(this, 0, sizeof(Details)); } |
+ |
+} // namespace ui |