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

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

Issue 1048333005: ozone: Map TouchEvent::touch_id_ into expected range (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Push all touch id management into EventFactoryEvdev Created 5 years, 8 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,
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 finger_count(finger_count), 81 finger_count(finger_count),
82 timestamp(timestamp) { 82 timestamp(timestamp) {
83 } 83 }
84 84
85 ScrollEventParams::ScrollEventParams(const ScrollEventParams& other) = default; 85 ScrollEventParams::ScrollEventParams(const ScrollEventParams& other) = default;
86 86
87 ScrollEventParams::~ScrollEventParams() { 87 ScrollEventParams::~ScrollEventParams() {
88 } 88 }
89 89
90 TouchEventParams::TouchEventParams(int device_id, 90 TouchEventParams::TouchEventParams(int device_id,
91 int touch_id, 91 int slot,
92 EventType type, 92 EventType type,
93 const gfx::PointF& location, 93 const gfx::PointF& location,
94 const gfx::Vector2dF& radii, 94 const gfx::Vector2dF& radii,
95 float pressure, 95 float pressure,
96 const base::TimeDelta& timestamp) 96 const base::TimeDelta& timestamp)
97 : device_id(device_id), 97 : device_id(device_id),
98 touch_id(touch_id), 98 slot(slot),
99 type(type), 99 type(type),
100 location(location), 100 location(location),
101 radii(radii), 101 radii(radii),
102 pressure(pressure), 102 pressure(pressure),
103 timestamp(timestamp) { 103 timestamp(timestamp) {
104 } 104 }
105 105
106 TouchEventParams::TouchEventParams(const TouchEventParams& other) = default; 106 TouchEventParams::TouchEventParams(const TouchEventParams& other) = default;
107 107
108 TouchEventParams::~TouchEventParams() { 108 TouchEventParams::~TouchEventParams() {
109 } 109 }
110 110
111 } // namspace ui 111 } // namspace ui
OLDNEW
« no previous file with comments | « ui/events/ozone/evdev/device_event_dispatcher_evdev.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