Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Side by Side Diff: ui/events/ozone/evdev/event_dispatch_callback.cc

Issue 869613003: [PATCH 5/11] ozone: evdev: Replace dispatch callbacks with an interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: namespace ui Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 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
18 MouseMoveEventParams::MouseMoveEventParams(int device_id,
19 const gfx::PointF& location)
20 : device_id(device_id), location(location) {
21 }
22
23 MouseMoveEventParams::MouseMoveEventParams(const MouseMoveEventParams& other) =
24 default;
25
26 MouseMoveEventParams::~MouseMoveEventParams() {
27 }
28
29 MouseButtonEventParams::MouseButtonEventParams(int device_id,
30 const gfx::PointF& location,
31 unsigned int button,
32 bool down,
33 bool allow_remap)
34 : device_id(device_id),
35 location(location),
36 button(button),
37 down(down),
38 allow_remap(allow_remap) {
39 }
40
41 MouseButtonEventParams::MouseButtonEventParams(
42 const MouseButtonEventParams& other) = default;
43
44 MouseButtonEventParams::~MouseButtonEventParams() {
45 }
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
80 TouchEventParams::TouchEventParams(int device_id,
81 int touch_id,
82 EventType type,
83 const gfx::PointF& location,
84 const gfx::Vector2dF& radii,
85 float pressure,
86 const base::TimeDelta& timestamp)
87 : device_id(device_id),
88 touch_id(touch_id),
89 type(type),
90 location(location),
91 radii(radii),
92 pressure(pressure),
93 timestamp(timestamp) {
94 }
95
96 TouchEventParams::TouchEventParams(const TouchEventParams& other) = default;
97
98 TouchEventParams::~TouchEventParams() {
99 }
100
101 } // namspace ui
OLDNEW
« no previous file with comments | « ui/events/ozone/evdev/event_dispatch_callback.h ('k') | ui/events/ozone/evdev/event_factory_evdev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698