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 const PointerDetails
& details
,
29 base::TimeDelta timestamp
)
30 : device_id(device_id
),
32 pointer_details(details
),
33 timestamp(timestamp
) {}
35 MouseMoveEventParams::MouseMoveEventParams(const MouseMoveEventParams
& other
) =
38 MouseMoveEventParams::~MouseMoveEventParams() {
41 MouseButtonEventParams::MouseButtonEventParams(int device_id
,
42 const gfx::PointF
& location
,
46 const PointerDetails
& details
,
47 base::TimeDelta timestamp
)
48 : device_id(device_id
),
52 allow_remap(allow_remap
),
53 pointer_details(details
),
54 timestamp(timestamp
) {}
56 MouseButtonEventParams::MouseButtonEventParams(
57 const MouseButtonEventParams
& other
) = default;
59 MouseButtonEventParams::~MouseButtonEventParams() {
62 MouseWheelEventParams::MouseWheelEventParams(int device_id
,
63 const gfx::PointF
& location
,
64 const gfx::Vector2d
& delta
,
65 base::TimeDelta timestamp
)
66 : device_id(device_id
),
69 timestamp(timestamp
) {
72 MouseWheelEventParams::MouseWheelEventParams(
73 const MouseWheelEventParams
& other
) = default;
75 MouseWheelEventParams::~MouseWheelEventParams() {
78 ScrollEventParams::ScrollEventParams(int device_id
,
80 const gfx::PointF location
,
81 const gfx::Vector2dF
& delta
,
82 const gfx::Vector2dF
& ordinal_delta
,
84 const base::TimeDelta timestamp
)
85 : device_id(device_id
),
89 ordinal_delta(ordinal_delta
),
90 finger_count(finger_count
),
91 timestamp(timestamp
) {
94 ScrollEventParams::ScrollEventParams(const ScrollEventParams
& other
) = default;
96 ScrollEventParams::~ScrollEventParams() {
99 TouchEventParams::TouchEventParams(int device_id
,
102 const gfx::PointF
& location
,
103 const gfx::Vector2dF
& radii
,
105 const base::TimeDelta
& timestamp
)
106 : device_id(device_id
),
112 timestamp(timestamp
) {
115 TouchEventParams::TouchEventParams(const TouchEventParams
& other
) = default;
117 TouchEventParams::~TouchEventParams() {