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

Unified Diff: ui/events/ozone/evdev/event_dispatch_callback.cc

Issue 874713002: [PATCH 1/11] ozone: evdev: Move touch ui::Event transformation to EventFactoryEvdev (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates for events_unittests Created 5 years, 11 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/ozone/evdev/event_dispatch_callback.cc
diff --git a/ui/events/ozone/evdev/event_dispatch_callback.cc b/ui/events/ozone/evdev/event_dispatch_callback.cc
new file mode 100644
index 0000000000000000000000000000000000000000..aa2fcced5124d6f4e78095487e8da58dfac77e0a
--- /dev/null
+++ b/ui/events/ozone/evdev/event_dispatch_callback.cc
@@ -0,0 +1,30 @@
+// 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/ozone/evdev/event_dispatch_callback.h"
+
+namespace ui {
+
+TouchEventParams::TouchEventParams(int device_id,
+ int touch_id,
+ EventType type,
+ const gfx::PointF& location,
+ const gfx::Vector2dF& radii,
+ float pressure,
+ const base::TimeDelta& timestamp)
+ : device_id(device_id),
+ touch_id(touch_id),
+ type(type),
+ location(location),
+ radii(radii),
+ pressure(pressure),
+ timestamp(timestamp) {
+}
+
+TouchEventParams::TouchEventParams(const TouchEventParams& other) = default;
+
+TouchEventParams::~TouchEventParams() {
+}
+
+} // namspace ui

Powered by Google App Engine
This is Rietveld 408576698