cygprofile: increase timeouts to allow showing web contents
[chromium-blink-merge.git] / ui / events / ozone / evdev / device_event_dispatcher_evdev.cc
blob58af9a3944fb7d27273929de0f6c69a336f88a2b
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 const PointerDetails& details,
29 base::TimeDelta timestamp)
30 : device_id(device_id),
31 location(location),
32 pointer_details(details),
33 timestamp(timestamp) {}
35 MouseMoveEventParams::MouseMoveEventParams(const MouseMoveEventParams& other) =
36 default;
38 MouseMoveEventParams::~MouseMoveEventParams() {
41 MouseButtonEventParams::MouseButtonEventParams(int device_id,
42 const gfx::PointF& location,
43 unsigned int button,
44 bool down,
45 bool allow_remap,
46 const PointerDetails& details,
47 base::TimeDelta timestamp)
48 : device_id(device_id),
49 location(location),
50 button(button),
51 down(down),
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),
67 location(location),
68 delta(delta),
69 timestamp(timestamp) {
72 MouseWheelEventParams::MouseWheelEventParams(
73 const MouseWheelEventParams& other) = default;
75 MouseWheelEventParams::~MouseWheelEventParams() {
78 ScrollEventParams::ScrollEventParams(int device_id,
79 EventType type,
80 const gfx::PointF location,
81 const gfx::Vector2dF& delta,
82 const gfx::Vector2dF& ordinal_delta,
83 int finger_count,
84 const base::TimeDelta timestamp)
85 : device_id(device_id),
86 type(type),
87 location(location),
88 delta(delta),
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,
100 int slot,
101 EventType type,
102 const gfx::PointF& location,
103 const gfx::Vector2dF& radii,
104 float pressure,
105 const base::TimeDelta& timestamp)
106 : device_id(device_id),
107 slot(slot),
108 type(type),
109 location(location),
110 radii(radii),
111 pressure(pressure),
112 timestamp(timestamp) {
115 TouchEventParams::TouchEventParams(const TouchEventParams& other) = default;
117 TouchEventParams::~TouchEventParams() {
120 } // namspace ui