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

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: updates for events_unittests Created 5 years, 11 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 ScrollEventParams::ScrollEventParams(int device_id,
10 EventType type,
11 const gfx::PointF location,
12 const gfx::Vector2dF delta,
13 const gfx::Vector2dF ordinal_delta,
14 int finger_count,
15 const base::TimeDelta timestamp)
16 : device_id(device_id),
17 type(type),
18 location(location),
19 delta(delta),
20 ordinal_delta(ordinal_delta),
21 finger_count(finger_count),
22 timestamp(timestamp) {
23 }
24
25 ScrollEventParams::ScrollEventParams(const ScrollEventParams& other) = default;
26
27 ScrollEventParams::~ScrollEventParams() {
28 }
29
30 TouchEventParams::TouchEventParams(int device_id,
31 int touch_id,
32 EventType type,
33 const gfx::PointF& location,
34 const gfx::Vector2dF& radii,
35 float pressure,
36 const base::TimeDelta& timestamp)
37 : device_id(device_id),
38 touch_id(touch_id),
39 type(type),
40 location(location),
41 radii(radii),
42 pressure(pressure),
43 timestamp(timestamp) {
44 }
45
46 TouchEventParams::TouchEventParams(const TouchEventParams& other) = default;
47
48 TouchEventParams::~TouchEventParams() {
49 }
50
51 } // namspace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698