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

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

Issue 1287103004: Sync ui/events to chromium @ https://codereview.chromium.org/1210203002 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebased Created 5 years, 4 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/device_event_dispatcher_evdev.cc
diff --git a/ui/events/ozone/evdev/device_event_dispatcher_evdev.cc b/ui/events/ozone/evdev/device_event_dispatcher_evdev.cc
new file mode 100644
index 0000000000000000000000000000000000000000..47725bd24cfc26204b0c4f8e8292e2cdbae26a08
--- /dev/null
+++ b/ui/events/ozone/evdev/device_event_dispatcher_evdev.cc
@@ -0,0 +1,116 @@
+// Copyright 2015 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/device_event_dispatcher_evdev.h"
+
+namespace ui {
+
+KeyEventParams::KeyEventParams(int device_id,
+ unsigned int code,
+ bool down,
+ bool suppress_auto_repeat,
+ base::TimeDelta timestamp)
+ : device_id(device_id),
+ code(code),
+ down(down),
+ suppress_auto_repeat(suppress_auto_repeat),
+ timestamp(timestamp) {
+}
+
+KeyEventParams::KeyEventParams(const KeyEventParams& other) = default;
+
+KeyEventParams::~KeyEventParams() {
+}
+
+MouseMoveEventParams::MouseMoveEventParams(int device_id,
+ const gfx::PointF& location,
+ base::TimeDelta timestamp)
+ : device_id(device_id), location(location), timestamp(timestamp) {
+}
+
+MouseMoveEventParams::MouseMoveEventParams(const MouseMoveEventParams& other) =
+ default;
+
+MouseMoveEventParams::~MouseMoveEventParams() {
+}
+
+MouseButtonEventParams::MouseButtonEventParams(int device_id,
+ const gfx::PointF& location,
+ unsigned int button,
+ bool down,
+ bool allow_remap,
+ base::TimeDelta timestamp)
+ : device_id(device_id),
+ location(location),
+ button(button),
+ down(down),
+ allow_remap(allow_remap),
+ timestamp(timestamp) {
+}
+
+MouseButtonEventParams::MouseButtonEventParams(
+ const MouseButtonEventParams& other) = default;
+
+MouseButtonEventParams::~MouseButtonEventParams() {
+}
+
+MouseWheelEventParams::MouseWheelEventParams(int device_id,
+ const gfx::PointF& location,
+ const gfx::Vector2d& delta,
+ base::TimeDelta timestamp)
+ : device_id(device_id),
+ location(location),
+ delta(delta),
+ timestamp(timestamp) {
+}
+
+MouseWheelEventParams::MouseWheelEventParams(
+ const MouseWheelEventParams& other) = default;
+
+MouseWheelEventParams::~MouseWheelEventParams() {
+}
+
+ScrollEventParams::ScrollEventParams(int device_id,
+ EventType type,
+ const gfx::PointF location,
+ const gfx::Vector2dF& delta,
+ const gfx::Vector2dF& ordinal_delta,
+ int finger_count,
+ const base::TimeDelta timestamp)
+ : device_id(device_id),
+ type(type),
+ location(location),
+ delta(delta),
+ ordinal_delta(ordinal_delta),
+ finger_count(finger_count),
+ timestamp(timestamp) {
+}
+
+ScrollEventParams::ScrollEventParams(const ScrollEventParams& other) = default;
+
+ScrollEventParams::~ScrollEventParams() {
+}
+
+TouchEventParams::TouchEventParams(int device_id,
+ int slot,
+ EventType type,
+ const gfx::PointF& location,
+ const gfx::Vector2dF& radii,
+ float pressure,
+ const base::TimeDelta& timestamp)
+ : device_id(device_id),
+ slot(slot),
+ type(type),
+ location(location),
+ radii(radii),
+ pressure(pressure),
+ timestamp(timestamp) {
+}
+
+TouchEventParams::TouchEventParams(const TouchEventParams& other) = default;
+
+TouchEventParams::~TouchEventParams() {
+}
+
+} // namspace ui
« no previous file with comments | « ui/events/ozone/evdev/device_event_dispatcher_evdev.h ('k') | ui/events/ozone/evdev/event_converter_evdev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698