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

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

Issue 872683006: [PATCH 3/11] ozone: evdev: Move MouseButtonMap usage during dispatch to EventFactoryEvdev (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update per comments on previous patches 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
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) {
11 } 11 }
12 12
13 KeyEventParams::KeyEventParams(const KeyEventParams& other) = default; 13 KeyEventParams::KeyEventParams(const KeyEventParams& other) = default;
14 14
15 KeyEventParams::~KeyEventParams() { 15 KeyEventParams::~KeyEventParams() {
16 } 16 }
17 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
18 TouchEventParams::TouchEventParams(int device_id, 47 TouchEventParams::TouchEventParams(int device_id,
19 int touch_id, 48 int touch_id,
20 EventType type, 49 EventType type,
21 const gfx::PointF& location, 50 const gfx::PointF& location,
22 const gfx::Vector2dF& radii, 51 const gfx::Vector2dF& radii,
23 float pressure, 52 float pressure,
24 const base::TimeDelta& timestamp) 53 const base::TimeDelta& timestamp)
25 : device_id(device_id), 54 : device_id(device_id),
26 touch_id(touch_id), 55 touch_id(touch_id),
27 type(type), 56 type(type),
28 location(location), 57 location(location),
29 radii(radii), 58 radii(radii),
30 pressure(pressure), 59 pressure(pressure),
31 timestamp(timestamp) { 60 timestamp(timestamp) {
32 } 61 }
33 62
34 TouchEventParams::TouchEventParams(const TouchEventParams& other) = default; 63 TouchEventParams::TouchEventParams(const TouchEventParams& other) = default;
35 64
36 TouchEventParams::~TouchEventParams() { 65 TouchEventParams::~TouchEventParams() {
37 } 66 }
38 67
39 } // namspace ui 68 } // 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