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

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

Issue 1294523004: ozone: Handle pressure and tilt for stylus devices (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@new-pe-details
Patch Set: Drop now unused mutators. Created 5 years, 4 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 2015 The Chromium Authors. All rights reserved. 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 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/device_event_dispatcher_evdev.h" 5 #include "ui/events/ozone/evdev/device_event_dispatcher_evdev.h"
6 6
7 namespace ui { 7 namespace ui {
8 8
9 KeyEventParams::KeyEventParams(int device_id, 9 KeyEventParams::KeyEventParams(int device_id,
10 unsigned int code, 10 unsigned int code,
11 bool down, 11 bool down,
12 bool suppress_auto_repeat, 12 bool suppress_auto_repeat,
13 base::TimeDelta timestamp) 13 base::TimeDelta timestamp)
14 : device_id(device_id), 14 : device_id(device_id),
15 code(code), 15 code(code),
16 down(down), 16 down(down),
17 suppress_auto_repeat(suppress_auto_repeat), 17 suppress_auto_repeat(suppress_auto_repeat),
18 timestamp(timestamp) { 18 timestamp(timestamp) {
19 } 19 }
20 20
21 KeyEventParams::KeyEventParams(const KeyEventParams& other) = default; 21 KeyEventParams::KeyEventParams(const KeyEventParams& other) = default;
22 22
23 KeyEventParams::~KeyEventParams() { 23 KeyEventParams::~KeyEventParams() {
24 } 24 }
25 25
26 MouseMoveEventParams::MouseMoveEventParams(int device_id, 26 MouseMoveEventParams::MouseMoveEventParams(int device_id,
27 const gfx::PointF& location, 27 const gfx::PointF& location,
28 const PointerDetails& details,
28 base::TimeDelta timestamp) 29 base::TimeDelta timestamp)
29 : device_id(device_id), location(location), timestamp(timestamp) { 30 : device_id(device_id),
30 } 31 location(location),
32 pointer_details(details),
33 timestamp(timestamp) {}
31 34
32 MouseMoveEventParams::MouseMoveEventParams(const MouseMoveEventParams& other) = 35 MouseMoveEventParams::MouseMoveEventParams(const MouseMoveEventParams& other) =
33 default; 36 default;
34 37
35 MouseMoveEventParams::~MouseMoveEventParams() { 38 MouseMoveEventParams::~MouseMoveEventParams() {
36 } 39 }
37 40
38 MouseButtonEventParams::MouseButtonEventParams(int device_id, 41 MouseButtonEventParams::MouseButtonEventParams(int device_id,
39 const gfx::PointF& location, 42 const gfx::PointF& location,
40 unsigned int button, 43 unsigned int button,
41 bool down, 44 bool down,
42 bool allow_remap, 45 bool allow_remap,
46 const PointerDetails& details,
43 base::TimeDelta timestamp) 47 base::TimeDelta timestamp)
44 : device_id(device_id), 48 : device_id(device_id),
45 location(location), 49 location(location),
46 button(button), 50 button(button),
47 down(down), 51 down(down),
48 allow_remap(allow_remap), 52 allow_remap(allow_remap),
49 timestamp(timestamp) { 53 pointer_details(details),
50 } 54 timestamp(timestamp) {}
51 55
52 MouseButtonEventParams::MouseButtonEventParams( 56 MouseButtonEventParams::MouseButtonEventParams(
53 const MouseButtonEventParams& other) = default; 57 const MouseButtonEventParams& other) = default;
54 58
55 MouseButtonEventParams::~MouseButtonEventParams() { 59 MouseButtonEventParams::~MouseButtonEventParams() {
56 } 60 }
57 61
58 MouseWheelEventParams::MouseWheelEventParams(int device_id, 62 MouseWheelEventParams::MouseWheelEventParams(int device_id,
59 const gfx::PointF& location, 63 const gfx::PointF& location,
60 const gfx::Vector2d& delta, 64 const gfx::Vector2d& delta,
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 pressure(pressure), 111 pressure(pressure),
108 timestamp(timestamp) { 112 timestamp(timestamp) {
109 } 113 }
110 114
111 TouchEventParams::TouchEventParams(const TouchEventParams& other) = default; 115 TouchEventParams::TouchEventParams(const TouchEventParams& other) = default;
112 116
113 TouchEventParams::~TouchEventParams() { 117 TouchEventParams::~TouchEventParams() {
114 } 118 }
115 119
116 } // namspace ui 120 } // namspace ui
OLDNEW
« no previous file with comments | « ui/events/ozone/evdev/device_event_dispatcher_evdev.h ('k') | ui/events/ozone/evdev/event_converter_evdev_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698