Drive: Add BatchableRequest subclass.
[chromium-blink-merge.git] / ui / events / ozone / evdev / device_event_dispatcher_evdev.cc
blob2743846ef351ed4814ef95a7a2f2453127bed870
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 base::TimeDelta timestamp)
13 : device_id(device_id), code(code), down(down), timestamp(timestamp) {
16 KeyEventParams::KeyEventParams(const KeyEventParams& other) = default;
18 KeyEventParams::~KeyEventParams() {
21 MouseMoveEventParams::MouseMoveEventParams(int device_id,
22 const gfx::PointF& location,
23 base::TimeDelta timestamp)
24 : device_id(device_id), location(location), timestamp(timestamp) {
27 MouseMoveEventParams::MouseMoveEventParams(const MouseMoveEventParams& other) =
28 default;
30 MouseMoveEventParams::~MouseMoveEventParams() {
33 MouseButtonEventParams::MouseButtonEventParams(int device_id,
34 const gfx::PointF& location,
35 unsigned int button,
36 bool down,
37 bool allow_remap,
38 base::TimeDelta timestamp)
39 : device_id(device_id),
40 location(location),
41 button(button),
42 down(down),
43 allow_remap(allow_remap),
44 timestamp(timestamp) {
47 MouseButtonEventParams::MouseButtonEventParams(
48 const MouseButtonEventParams& other) = default;
50 MouseButtonEventParams::~MouseButtonEventParams() {
53 MouseWheelEventParams::MouseWheelEventParams(int device_id,
54 const gfx::PointF& location,
55 const gfx::Vector2d& delta,
56 base::TimeDelta timestamp)
57 : device_id(device_id),
58 location(location),
59 delta(delta),
60 timestamp(timestamp) {
63 MouseWheelEventParams::MouseWheelEventParams(
64 const MouseWheelEventParams& other) = default;
66 MouseWheelEventParams::~MouseWheelEventParams() {
69 ScrollEventParams::ScrollEventParams(int device_id,
70 EventType type,
71 const gfx::PointF location,
72 const gfx::Vector2dF delta,
73 const gfx::Vector2dF ordinal_delta,
74 int finger_count,
75 const base::TimeDelta timestamp)
76 : device_id(device_id),
77 type(type),
78 location(location),
79 delta(delta),
80 ordinal_delta(ordinal_delta),
81 finger_count(finger_count),
82 timestamp(timestamp) {
85 ScrollEventParams::ScrollEventParams(const ScrollEventParams& other) = default;
87 ScrollEventParams::~ScrollEventParams() {
90 TouchEventParams::TouchEventParams(int device_id,
91 int touch_id,
92 EventType type,
93 const gfx::PointF& location,
94 const gfx::Vector2dF& radii,
95 float pressure,
96 const base::TimeDelta& timestamp)
97 : device_id(device_id),
98 touch_id(touch_id),
99 type(type),
100 location(location),
101 radii(radii),
102 pressure(pressure),
103 timestamp(timestamp) {
106 TouchEventParams::TouchEventParams(const TouchEventParams& other) = default;
108 TouchEventParams::~TouchEventParams() {
111 } // namspace ui