| OLD | NEW |
| 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 #ifndef UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_ | 5 #ifndef UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_ |
| 6 #define UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_ | 6 #define UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_ |
| 7 | 7 |
| 8 #include <bitset> | 8 #include <bitset> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 // without a syn event. | 93 // without a syn event. |
| 94 std::bitset<MAX_FINGERS> altered_slots_; | 94 std::bitset<MAX_FINGERS> altered_slots_; |
| 95 | 95 |
| 96 struct InProgressEvents { | 96 struct InProgressEvents { |
| 97 float x_; | 97 float x_; |
| 98 float y_; | 98 float y_; |
| 99 int id_; // Device reported "unique" touch point id; -1 means not active | 99 int id_; // Device reported "unique" touch point id; -1 means not active |
| 100 int finger_; // "Finger" id starting from 0; -1 means not active | 100 int finger_; // "Finger" id starting from 0; -1 means not active |
| 101 | 101 |
| 102 EventType type_; | 102 EventType type_; |
| 103 int major_; | 103 float radius_x_; |
| 104 float radius_y_; |
| 104 float pressure_; | 105 float pressure_; |
| 105 }; | 106 }; |
| 106 | 107 |
| 107 // In-progress touch points. | 108 // In-progress touch points. |
| 108 InProgressEvents events_[MAX_FINGERS]; | 109 InProgressEvents events_[MAX_FINGERS]; |
| 109 | 110 |
| 110 // Controller for watching the input fd. | 111 // Controller for watching the input fd. |
| 111 base::MessagePumpLibevent::FileDescriptorWatcher controller_; | 112 base::MessagePumpLibevent::FileDescriptorWatcher controller_; |
| 112 | 113 |
| 113 DISALLOW_COPY_AND_ASSIGN(TouchEventConverterEvdev); | 114 DISALLOW_COPY_AND_ASSIGN(TouchEventConverterEvdev); |
| 114 }; | 115 }; |
| 115 | 116 |
| 116 } // namespace ui | 117 } // namespace ui |
| 117 | 118 |
| 118 #endif // UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_ | 119 #endif // UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_ |
| OLD | NEW |