Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 canceled. Touch events should be ignored till a press | |
| 27 // initiates a new touch. | |
| 28 bool cancelled; | |
|
flackr
2015/03/17 03:54:15
I think this can be equivalent to type == ET_TOUCH
| |
| 29 | |
| 30 float x; | |
| 31 float y; | |
| 32 int tracking_id; | |
| 33 size_t slot; | |
|
spang
2015/03/18 19:20:12
Is it needed to duplicate the offset into the slot
pkotwicz1
2015/03/18 20:00:02
Yes, it is a duplicate. It makes the interface of
| |
| 34 EventType type; | |
|
pkotwicz1
2015/03/18 20:00:02
It sounds like you are suggesting removing the |ty
spang
2015/03/18 20:52:18
Yes (or rather, breaking it into its constituent p
| |
| 35 float radius_x; | |
| 36 float radius_y; | |
| 37 float pressure; | |
| 38 }; | |
| 39 | |
| 40 } // namespace ui | |
| 41 | |
| 42 #endif // UI_EVENTS_OZONE_EVDEV_TOUCH_EVDEV_TYPES_H_ | |
| OLD | NEW |