| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 int pressure_max_; // Used to normalize pressure values. | 82 int pressure_max_; // Used to normalize pressure values. |
| 83 | 83 |
| 84 // Input range for x-axis. | 84 // Input range for x-axis. |
| 85 float x_min_tuxels_; | 85 float x_min_tuxels_; |
| 86 float x_num_tuxels_; | 86 float x_num_tuxels_; |
| 87 | 87 |
| 88 // Input range for y-axis. | 88 // Input range for y-axis. |
| 89 float y_min_tuxels_; | 89 float y_min_tuxels_; |
| 90 float y_num_tuxels_; | 90 float y_num_tuxels_; |
| 91 | 91 |
| 92 // Size of the touchscreen as reported by the driver. | |
| 93 gfx::Size native_size_; | |
| 94 | |
| 95 // Number of touch points reported by driver | 92 // Number of touch points reported by driver |
| 96 int touch_points_; | 93 int touch_points_; |
| 97 | 94 |
| 98 // Touch point currently being updated from the /dev/input/event* stream. | 95 // Touch point currently being updated from the /dev/input/event* stream. |
| 99 size_t current_slot_; | 96 size_t current_slot_; |
| 100 | 97 |
| 101 // In-progress touch points. | 98 // In-progress touch points. |
| 102 std::vector<InProgressEvents> events_; | 99 std::vector<InProgressEvents> events_; |
| 103 | 100 |
| 104 DISALLOW_COPY_AND_ASSIGN(TouchEventConverterEvdev); | 101 DISALLOW_COPY_AND_ASSIGN(TouchEventConverterEvdev); |
| 105 }; | 102 }; |
| 106 | 103 |
| 107 } // namespace ui | 104 } // namespace ui |
| 108 | 105 |
| 109 #endif // UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_ | 106 #endif // UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_ |
| OLD | NEW |