Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / ui / events / ozone / evdev / device_event_dispatcher_evdev.cc
blob47725bd24cfc26204b0c4f8e8292e2cdbae26a08
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"
7 namespace ui {
9 KeyEventParams::KeyEventParams(int device_id,
10 unsigned int code,
11 bool down,
12 bool suppress_auto_repeat,
13 base::TimeDelta timestamp)
14 : device_id(device_id),
15 code(code),
16 down(down),
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) =
33 default;
35 MouseMoveEventParams::~MouseMoveEventParams() {
38 MouseButtonEventParams::MouseButtonEventParams(int device_id,
39 const gfx::PointF& location,
40 unsigned int button,
41 bool down,
42 bool allow_remap,
43 base::TimeDelta timestamp)
44 : device_id(device_id),
45 location(location),
46 button(button),
47 down(down),
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),
63 location(location),
64 delta(delta),
65 timestamp(timestamp) {
68 MouseWheelEventParams::MouseWheelEventParams(
69 const MouseWheelEventParams& other) = default;
71 MouseWheelEventParams::~MouseWheelEventParams() {
74 ScrollEventParams::ScrollEventParams(int device_id,
75 EventType type,
76 const gfx::PointF location,
77 const gfx::Vector2dF& delta,
78 const gfx::Vector2dF& ordinal_delta,
79 int finger_count,
80 const base::TimeDelta timestamp)
81 : device_id(device_id),
82 type(type),
83 location(location),
84 delta(delta),
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,
96 int slot,
97 EventType type,
98 const gfx::PointF& location,
99 const gfx::Vector2dF& radii,
100 float pressure,
101 const base::TimeDelta& timestamp)
102 : device_id(device_id),
103 slot(slot),
104 type(type),
105 location(location),
106 radii(radii),
107 pressure(pressure),
108 timestamp(timestamp) {
111 TouchEventParams::TouchEventParams(const TouchEventParams& other) = default;
113 TouchEventParams::~TouchEventParams() {
116 } // namspace ui