| 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 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_ | |
| OLD | NEW |