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 base::TimeDelta timestamp
)
13 : device_id(device_id
), code(code
), down(down
), timestamp(timestamp
) {
16 KeyEventParams::KeyEventParams(const KeyEventParams
& other
) = default;
18 KeyEventParams::~KeyEventParams() {
21 MouseMoveEventParams::MouseMoveEventParams(int device_id
,
22 const gfx::PointF
& location
,
23 base::TimeDelta timestamp
)
24 : device_id(device_id
), location(location
), timestamp(timestamp
) {
27 MouseMoveEventParams::MouseMoveEventParams(const MouseMoveEventParams
& other
) =
30 MouseMoveEventParams::~MouseMoveEventParams() {
33 MouseButtonEventParams::MouseButtonEventParams(int device_id
,
34 const gfx::PointF
& location
,
38 base::TimeDelta timestamp
)
39 : device_id(device_id
),
43 allow_remap(allow_remap
),
44 timestamp(timestamp
) {
47 MouseButtonEventParams::MouseButtonEventParams(
48 const MouseButtonEventParams
& other
) = default;
50 MouseButtonEventParams::~MouseButtonEventParams() {
53 MouseWheelEventParams::MouseWheelEventParams(int device_id
,
54 const gfx::PointF
& location
,
55 const gfx::Vector2d
& delta
,
56 base::TimeDelta timestamp
)
57 : device_id(device_id
),
60 timestamp(timestamp
) {
63 MouseWheelEventParams::MouseWheelEventParams(
64 const MouseWheelEventParams
& other
) = default;
66 MouseWheelEventParams::~MouseWheelEventParams() {
69 ScrollEventParams::ScrollEventParams(int device_id
,
71 const gfx::PointF location
,
72 const gfx::Vector2dF delta
,
73 const gfx::Vector2dF ordinal_delta
,
75 const base::TimeDelta timestamp
)
76 : device_id(device_id
),
80 ordinal_delta(ordinal_delta
),
81 finger_count(finger_count
),
82 timestamp(timestamp
) {
85 ScrollEventParams::ScrollEventParams(const ScrollEventParams
& other
) = default;
87 ScrollEventParams::~ScrollEventParams() {
90 TouchEventParams::TouchEventParams(int device_id
,
93 const gfx::PointF
& location
,
94 const gfx::Vector2dF
& radii
,
96 const base::TimeDelta
& timestamp
)
97 : device_id(device_id
),
103 timestamp(timestamp
) {
106 TouchEventParams::TouchEventParams(const TouchEventParams
& other
) = default;
108 TouchEventParams::~TouchEventParams() {