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) | 9 KeyEventParams::KeyEventParams(int device_id, unsigned int code, bool down) |
10 : device_id(device_id), code(code), down(down) { | 10 : device_id(device_id), code(code), down(down) { |
(...skipping 26 matching lines...) Expand all Loading... |
37 down(down), | 37 down(down), |
38 allow_remap(allow_remap) { | 38 allow_remap(allow_remap) { |
39 } | 39 } |
40 | 40 |
41 MouseButtonEventParams::MouseButtonEventParams( | 41 MouseButtonEventParams::MouseButtonEventParams( |
42 const MouseButtonEventParams& other) = default; | 42 const MouseButtonEventParams& other) = default; |
43 | 43 |
44 MouseButtonEventParams::~MouseButtonEventParams() { | 44 MouseButtonEventParams::~MouseButtonEventParams() { |
45 } | 45 } |
46 | 46 |
| 47 MouseWheelEventParams::MouseWheelEventParams(int device_id, |
| 48 const gfx::PointF& location, |
| 49 const gfx::Vector2d& delta) |
| 50 : device_id(device_id), location(location), delta(delta) { |
| 51 } |
| 52 |
| 53 MouseWheelEventParams::MouseWheelEventParams( |
| 54 const MouseWheelEventParams& other) = default; |
| 55 |
| 56 MouseWheelEventParams::~MouseWheelEventParams() { |
| 57 } |
| 58 |
| 59 ScrollEventParams::ScrollEventParams(int device_id, |
| 60 EventType type, |
| 61 const gfx::PointF location, |
| 62 const gfx::Vector2dF delta, |
| 63 const gfx::Vector2dF ordinal_delta, |
| 64 int finger_count, |
| 65 const base::TimeDelta timestamp) |
| 66 : device_id(device_id), |
| 67 type(type), |
| 68 location(location), |
| 69 delta(delta), |
| 70 ordinal_delta(ordinal_delta), |
| 71 finger_count(finger_count), |
| 72 timestamp(timestamp) { |
| 73 } |
| 74 |
| 75 ScrollEventParams::ScrollEventParams(const ScrollEventParams& other) = default; |
| 76 |
| 77 ScrollEventParams::~ScrollEventParams() { |
| 78 } |
| 79 |
47 TouchEventParams::TouchEventParams(int device_id, | 80 TouchEventParams::TouchEventParams(int device_id, |
48 int touch_id, | 81 int touch_id, |
49 EventType type, | 82 EventType type, |
50 const gfx::PointF& location, | 83 const gfx::PointF& location, |
51 const gfx::Vector2dF& radii, | 84 const gfx::Vector2dF& radii, |
52 float pressure, | 85 float pressure, |
53 const base::TimeDelta& timestamp) | 86 const base::TimeDelta& timestamp) |
54 : device_id(device_id), | 87 : device_id(device_id), |
55 touch_id(touch_id), | 88 touch_id(touch_id), |
56 type(type), | 89 type(type), |
57 location(location), | 90 location(location), |
58 radii(radii), | 91 radii(radii), |
59 pressure(pressure), | 92 pressure(pressure), |
60 timestamp(timestamp) { | 93 timestamp(timestamp) { |
61 } | 94 } |
62 | 95 |
63 TouchEventParams::TouchEventParams(const TouchEventParams& other) = default; | 96 TouchEventParams::TouchEventParams(const TouchEventParams& other) = default; |
64 | 97 |
65 TouchEventParams::~TouchEventParams() { | 98 TouchEventParams::~TouchEventParams() { |
66 } | 99 } |
67 | 100 |
68 } // namspace ui | 101 } // namspace ui |
OLD | NEW |