Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(623)

Unified Diff: ui/events/gesture_detection/gesture_event_data.cc

Issue 181833003: [Android] Out with the Android GR, in with the new unified C++ GR (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
« no previous file with comments | « ui/events/gesture_detection/gesture_event_data.h ('k') | ui/events/gesture_detection/gesture_event_data_packet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698