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

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

Issue 872883003: [PATCH 2/11] ozone: evdev: Move KeyboardEvdev usage during dispatch to EventFactoryEvdev (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add KeyEventParams object for consistency 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)
10 : device_id(device_id), code(code), down(down) {
11 }
12
13 KeyEventParams::KeyEventParams(const KeyEventParams& other) = default;
14
15 KeyEventParams::~KeyEventParams() {
16 }
17
9 TouchEventParams::TouchEventParams(int device_id, 18 TouchEventParams::TouchEventParams(int device_id,
10 int touch_id, 19 int touch_id,
11 EventType type, 20 EventType type,
12 const gfx::PointF& location, 21 const gfx::PointF& location,
13 const gfx::Vector2dF& radii, 22 const gfx::Vector2dF& radii,
14 float pressure, 23 float pressure,
15 const base::TimeDelta& timestamp) 24 const base::TimeDelta& timestamp)
16 : device_id(device_id), 25 : device_id(device_id),
17 touch_id(touch_id), 26 touch_id(touch_id),
18 type(type), 27 type(type),
19 location(location), 28 location(location),
20 radii(radii), 29 radii(radii),
21 pressure(pressure), 30 pressure(pressure),
22 timestamp(timestamp) { 31 timestamp(timestamp) {
23 } 32 }
24 33
25 TouchEventParams::TouchEventParams(const TouchEventParams& other) = default; 34 TouchEventParams::TouchEventParams(const TouchEventParams& other) = default;
26 35
27 TouchEventParams::~TouchEventParams() { 36 TouchEventParams::~TouchEventParams() {
28 } 37 }
29 38
30 } // namspace ui 39 } // 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