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

Side by Side Diff: ui/events/ozone/evdev/touch_evdev_types.h

Issue 991533002: Port Chromium OS touch noise filtering to Chromium (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « ui/events/events.gyp ('k') | ui/events/ozone/evdev/touch_evdev_types.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef UI_EVENTS_OZONE_EVDEV_TOUCH_EVDEV_TYPES_H_
6 #define UI_EVENTS_OZONE_EVDEV_TOUCH_EVDEV_TYPES_H_
7
8 #include "base/basictypes.h"
9 #include "ui/events/event_constants.h"
10 #include "ui/events/ozone/evdev/events_ozone_evdev_export.h"
11
12 namespace ui {
13
14 // Number of supported touch slots. ABS_MT_SLOT messages with
15 // value >= kNumTouchEvdevSlots are ignored.
16 const int kNumTouchEvdevSlots = 20;
17
18 // Contains information about an in progress touch.
19 struct EVENTS_OZONE_EVDEV_EXPORT InProgressTouchEvdev {
20 InProgressTouchEvdev();
21 ~InProgressTouchEvdev();
22
23 // Whether there is new information for the touch.
24 bool altered;
25
26 // Whether the touch was cancelled. Touch events should be ignored till a
27 // new touch is initiated.
28 bool cancelled;
29
30 bool was_touching;
31 bool touching;
32 float x;
33 float y;
34 int tracking_id;
35 size_t slot;
36 float radius_x;
37 float radius_y;
38 float pressure;
39 };
40
41 } // namespace ui
42
43 #endif // UI_EVENTS_OZONE_EVDEV_TOUCH_EVDEV_TYPES_H_
OLDNEW
« no previous file with comments | « ui/events/events.gyp ('k') | ui/events/ozone/evdev/touch_evdev_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698