OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/events/ozone/evdev/device_event_dispatcher_evdev.h" | 5 #include "ui/events/ozone/evdev/device_event_dispatcher_evdev.h" |
6 | 6 |
7 namespace ui { | 7 namespace ui { |
8 | 8 |
9 KeyEventParams::KeyEventParams(int device_id, | 9 KeyEventParams::KeyEventParams(int device_id, |
10 unsigned int code, | 10 unsigned int code, |
11 bool down, | 11 bool down, |
12 bool suppress_auto_repeat, | 12 bool suppress_auto_repeat, |
13 base::TimeDelta timestamp) | 13 base::TimeTicks timestamp) |
14 : device_id(device_id), | 14 : device_id(device_id), |
15 code(code), | 15 code(code), |
16 down(down), | 16 down(down), |
17 suppress_auto_repeat(suppress_auto_repeat), | 17 suppress_auto_repeat(suppress_auto_repeat), |
18 timestamp(timestamp) { | 18 timestamp(timestamp) { |
19 } | 19 } |
20 | 20 |
21 KeyEventParams::KeyEventParams(const KeyEventParams& other) = default; | 21 KeyEventParams::KeyEventParams(const KeyEventParams& other) = default; |
22 | 22 |
23 KeyEventParams::~KeyEventParams() { | 23 KeyEventParams::~KeyEventParams() { |
24 } | 24 } |
25 | 25 |
26 MouseMoveEventParams::MouseMoveEventParams(int device_id, | 26 MouseMoveEventParams::MouseMoveEventParams(int device_id, |
27 const gfx::PointF& location, | 27 const gfx::PointF& location, |
28 const PointerDetails& details, | 28 const PointerDetails& details, |
29 base::TimeDelta timestamp) | 29 base::TimeTicks timestamp) |
30 : device_id(device_id), | 30 : device_id(device_id), |
31 location(location), | 31 location(location), |
32 pointer_details(details), | 32 pointer_details(details), |
33 timestamp(timestamp) {} | 33 timestamp(timestamp) {} |
34 | 34 |
35 MouseMoveEventParams::MouseMoveEventParams(const MouseMoveEventParams& other) = | 35 MouseMoveEventParams::MouseMoveEventParams(const MouseMoveEventParams& other) = |
36 default; | 36 default; |
37 | 37 |
38 MouseMoveEventParams::~MouseMoveEventParams() { | 38 MouseMoveEventParams::~MouseMoveEventParams() { |
39 } | 39 } |
40 | 40 |
41 MouseButtonEventParams::MouseButtonEventParams(int device_id, | 41 MouseButtonEventParams::MouseButtonEventParams(int device_id, |
42 const gfx::PointF& location, | 42 const gfx::PointF& location, |
43 unsigned int button, | 43 unsigned int button, |
44 bool down, | 44 bool down, |
45 bool allow_remap, | 45 bool allow_remap, |
46 const PointerDetails& details, | 46 const PointerDetails& details, |
47 base::TimeDelta timestamp) | 47 base::TimeTicks timestamp) |
48 : device_id(device_id), | 48 : device_id(device_id), |
49 location(location), | 49 location(location), |
50 button(button), | 50 button(button), |
51 down(down), | 51 down(down), |
52 allow_remap(allow_remap), | 52 allow_remap(allow_remap), |
53 pointer_details(details), | 53 pointer_details(details), |
54 timestamp(timestamp) {} | 54 timestamp(timestamp) {} |
55 | 55 |
56 MouseButtonEventParams::MouseButtonEventParams( | 56 MouseButtonEventParams::MouseButtonEventParams( |
57 const MouseButtonEventParams& other) = default; | 57 const MouseButtonEventParams& other) = default; |
58 | 58 |
59 MouseButtonEventParams::~MouseButtonEventParams() { | 59 MouseButtonEventParams::~MouseButtonEventParams() { |
60 } | 60 } |
61 | 61 |
62 MouseWheelEventParams::MouseWheelEventParams(int device_id, | 62 MouseWheelEventParams::MouseWheelEventParams(int device_id, |
63 const gfx::PointF& location, | 63 const gfx::PointF& location, |
64 const gfx::Vector2d& delta, | 64 const gfx::Vector2d& delta, |
65 base::TimeDelta timestamp) | 65 base::TimeTicks timestamp) |
66 : device_id(device_id), | 66 : device_id(device_id), |
67 location(location), | 67 location(location), |
68 delta(delta), | 68 delta(delta), |
69 timestamp(timestamp) { | 69 timestamp(timestamp) { |
70 } | 70 } |
71 | 71 |
72 MouseWheelEventParams::MouseWheelEventParams( | 72 MouseWheelEventParams::MouseWheelEventParams( |
73 const MouseWheelEventParams& other) = default; | 73 const MouseWheelEventParams& other) = default; |
74 | 74 |
75 MouseWheelEventParams::~MouseWheelEventParams() { | 75 MouseWheelEventParams::~MouseWheelEventParams() { |
76 } | 76 } |
77 | 77 |
78 PinchEventParams::PinchEventParams(int device_id, | 78 PinchEventParams::PinchEventParams(int device_id, |
79 EventType type, | 79 EventType type, |
80 const gfx::PointF location, | 80 const gfx::PointF location, |
81 float scale, | 81 float scale, |
82 const base::TimeDelta timestamp) | 82 const base::TimeTicks timestamp) |
83 : device_id(device_id), | 83 : device_id(device_id), |
84 type(type), | 84 type(type), |
85 location(location), | 85 location(location), |
86 scale(scale), | 86 scale(scale), |
87 timestamp(timestamp) {} | 87 timestamp(timestamp) {} |
88 | 88 |
89 PinchEventParams::PinchEventParams(const PinchEventParams& other) = default; | 89 PinchEventParams::PinchEventParams(const PinchEventParams& other) = default; |
90 | 90 |
91 PinchEventParams::~PinchEventParams() { | 91 PinchEventParams::~PinchEventParams() { |
92 } | 92 } |
93 | 93 |
94 ScrollEventParams::ScrollEventParams(int device_id, | 94 ScrollEventParams::ScrollEventParams(int device_id, |
95 EventType type, | 95 EventType type, |
96 const gfx::PointF location, | 96 const gfx::PointF location, |
97 const gfx::Vector2dF& delta, | 97 const gfx::Vector2dF& delta, |
98 const gfx::Vector2dF& ordinal_delta, | 98 const gfx::Vector2dF& ordinal_delta, |
99 int finger_count, | 99 int finger_count, |
100 const base::TimeDelta timestamp) | 100 const base::TimeTicks timestamp) |
101 : device_id(device_id), | 101 : device_id(device_id), |
102 type(type), | 102 type(type), |
103 location(location), | 103 location(location), |
104 delta(delta), | 104 delta(delta), |
105 ordinal_delta(ordinal_delta), | 105 ordinal_delta(ordinal_delta), |
106 finger_count(finger_count), | 106 finger_count(finger_count), |
107 timestamp(timestamp) { | 107 timestamp(timestamp) { |
108 } | 108 } |
109 | 109 |
110 ScrollEventParams::ScrollEventParams(const ScrollEventParams& other) = default; | 110 ScrollEventParams::ScrollEventParams(const ScrollEventParams& other) = default; |
111 | 111 |
112 ScrollEventParams::~ScrollEventParams() { | 112 ScrollEventParams::~ScrollEventParams() { |
113 } | 113 } |
114 | 114 |
115 TouchEventParams::TouchEventParams(int device_id, | 115 TouchEventParams::TouchEventParams(int device_id, |
116 int slot, | 116 int slot, |
117 EventType type, | 117 EventType type, |
118 const gfx::PointF& location, | 118 const gfx::PointF& location, |
119 const PointerDetails& details, | 119 const PointerDetails& details, |
120 const base::TimeDelta& timestamp) | 120 const base::TimeTicks& timestamp) |
121 : device_id(device_id), | 121 : device_id(device_id), |
122 slot(slot), | 122 slot(slot), |
123 type(type), | 123 type(type), |
124 location(location), | 124 location(location), |
125 pointer_details(details), | 125 pointer_details(details), |
126 timestamp(timestamp) {} | 126 timestamp(timestamp) {} |
127 | 127 |
128 TouchEventParams::TouchEventParams(const TouchEventParams& other) = default; | 128 TouchEventParams::TouchEventParams(const TouchEventParams& other) = default; |
129 | 129 |
130 TouchEventParams::~TouchEventParams() { | 130 TouchEventParams::~TouchEventParams() { |
131 } | 131 } |
132 | 132 |
133 } // namspace ui | 133 } // namspace ui |
OLD | NEW |