1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ui/events/ozone/evdev/device_event_dispatcher_evdev.h"
9 KeyEventParams::KeyEventParams(int device_id
,
12 bool suppress_auto_repeat
,
13 base::TimeDelta timestamp
)
14 : device_id(device_id
),
17 suppress_auto_repeat(suppress_auto_repeat
),
18 timestamp(timestamp
) {
21 KeyEventParams::KeyEventParams(const KeyEventParams
& other
) = default;
23 KeyEventParams::~KeyEventParams() {
26 MouseMoveEventParams::MouseMoveEventParams(int device_id
,
27 const gfx::PointF
& location
,
28 base::TimeDelta timestamp
)
29 : device_id(device_id
), location(location
), timestamp(timestamp
) {
32 MouseMoveEventParams::MouseMoveEventParams(const MouseMoveEventParams
& other
) =
35 MouseMoveEventParams::~MouseMoveEventParams() {
38 MouseButtonEventParams::MouseButtonEventParams(int device_id
,
39 const gfx::PointF
& location
,
43 base::TimeDelta timestamp
)
44 : device_id(device_id
),
48 allow_remap(allow_remap
),
49 timestamp(timestamp
) {
52 MouseButtonEventParams::MouseButtonEventParams(
53 const MouseButtonEventParams
& other
) = default;
55 MouseButtonEventParams::~MouseButtonEventParams() {
58 MouseWheelEventParams::MouseWheelEventParams(int device_id
,
59 const gfx::PointF
& location
,
60 const gfx::Vector2d
& delta
,
61 base::TimeDelta timestamp
)
62 : device_id(device_id
),
65 timestamp(timestamp
) {
68 MouseWheelEventParams::MouseWheelEventParams(
69 const MouseWheelEventParams
& other
) = default;
71 MouseWheelEventParams::~MouseWheelEventParams() {
74 ScrollEventParams::ScrollEventParams(int device_id
,
76 const gfx::PointF location
,
77 const gfx::Vector2dF
& delta
,
78 const gfx::Vector2dF
& ordinal_delta
,
80 const base::TimeDelta timestamp
)
81 : device_id(device_id
),
85 ordinal_delta(ordinal_delta
),
86 finger_count(finger_count
),
87 timestamp(timestamp
) {
90 ScrollEventParams::ScrollEventParams(const ScrollEventParams
& other
) = default;
92 ScrollEventParams::~ScrollEventParams() {
95 TouchEventParams::TouchEventParams(int device_id
,
98 const gfx::PointF
& location
,
99 const gfx::Vector2dF
& radii
,
101 const base::TimeDelta
& timestamp
)
102 : device_id(device_id
),
108 timestamp(timestamp
) {
111 TouchEventParams::TouchEventParams(const TouchEventParams
& other
) = default;
113 TouchEventParams::~TouchEventParams() {