OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/event_dispatch_callback.h" | 5 #include "ui/events/ozone/evdev/event_dispatch_callback.h" |
6 | 6 |
7 namespace ui { | 7 namespace ui { |
8 | 8 |
| 9 KeyEventParams::KeyEventParams(int device_id, unsigned int code, bool down) |
| 10 : device_id(device_id), code(code), down(down) { |
| 11 } |
| 12 |
| 13 KeyEventParams::KeyEventParams(const KeyEventParams& other) = default; |
| 14 |
| 15 KeyEventParams::~KeyEventParams() { |
| 16 } |
| 17 |
9 TouchEventParams::TouchEventParams(int device_id, | 18 TouchEventParams::TouchEventParams(int device_id, |
10 int touch_id, | 19 int touch_id, |
11 EventType type, | 20 EventType type, |
12 const gfx::PointF& location, | 21 const gfx::PointF& location, |
13 const gfx::Vector2dF& radii, | 22 const gfx::Vector2dF& radii, |
14 float pressure, | 23 float pressure, |
15 const base::TimeDelta& timestamp) | 24 const base::TimeDelta& timestamp) |
16 : device_id(device_id), | 25 : device_id(device_id), |
17 touch_id(touch_id), | 26 touch_id(touch_id), |
18 type(type), | 27 type(type), |
19 location(location), | 28 location(location), |
20 radii(radii), | 29 radii(radii), |
21 pressure(pressure), | 30 pressure(pressure), |
22 timestamp(timestamp) { | 31 timestamp(timestamp) { |
23 } | 32 } |
24 | 33 |
25 TouchEventParams::TouchEventParams(const TouchEventParams& other) = default; | 34 TouchEventParams::TouchEventParams(const TouchEventParams& other) = default; |
26 | 35 |
27 TouchEventParams::~TouchEventParams() { | 36 TouchEventParams::~TouchEventParams() { |
28 } | 37 } |
29 | 38 |
30 } // namspace ui | 39 } // namspace ui |
OLD | NEW |