OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "ui/events/ozone/evdev/event_dispatch_callback.h" | |
6 | |
7 namespace ui { | |
8 | |
9 ScrollEventParams::ScrollEventParams(int device_id, | |
10 EventType type, | |
11 const gfx::PointF location, | |
12 const gfx::Vector2dF delta, | |
13 const gfx::Vector2dF ordinal_delta, | |
14 int finger_count, | |
15 const base::TimeDelta timestamp) | |
16 : device_id(device_id), | |
17 type(type), | |
18 location(location), | |
19 delta(delta), | |
20 ordinal_delta(ordinal_delta), | |
21 finger_count(finger_count), | |
22 timestamp(timestamp) { | |
23 } | |
24 | |
25 ScrollEventParams::ScrollEventParams(const ScrollEventParams& other) = default; | |
26 | |
27 ScrollEventParams::~ScrollEventParams() { | |
28 } | |
29 | |
30 TouchEventParams::TouchEventParams(int device_id, | |
31 int touch_id, | |
32 EventType type, | |
33 const gfx::PointF& location, | |
34 const gfx::Vector2dF& radii, | |
35 float pressure, | |
36 const base::TimeDelta& timestamp) | |
37 : device_id(device_id), | |
38 touch_id(touch_id), | |
39 type(type), | |
40 location(location), | |
41 radii(radii), | |
42 pressure(pressure), | |
43 timestamp(timestamp) { | |
44 } | |
45 | |
46 TouchEventParams::TouchEventParams(const TouchEventParams& other) = default; | |
47 | |
48 TouchEventParams::~TouchEventParams() { | |
49 } | |
50 | |
51 } // namspace ui | |
OLD | NEW |