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

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

Issue 128613003: [Tracking Patch] Unified gesture detection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup 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_params.cc
diff --git a/ui/events/gesture_detection/gesture_event_params.cc b/ui/events/gesture_detection/gesture_event_params.cc
new file mode 100644
index 0000000000000000000000000000000000000000..117dd0283ee3ebe5051ac99f155ccbd8a0520fb0
--- /dev/null
+++ b/ui/events/gesture_detection/gesture_event_params.cc
@@ -0,0 +1,24 @@
+// 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_params.h"
+
+namespace ui {
+
+GestureEventParams::GestureEventParams(GestureEventType type,
+ base::TimeTicks time,
+ float x,
+ float y,
+ const Data& data)
+ : type(type),
+ time(time),
+ x(x),
+ y(y),
+ data(data) {}
+
+GestureEventParams::Data::Data() {
+ memset(this, 0, sizeof(Data));
+}
+
+} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698