| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 int pressure_max_; // Used to normalize pressure values. | 67 int pressure_max_; // Used to normalize pressure values. |
| 68 | 68 |
| 69 // Input range for x-axis. | 69 // Input range for x-axis. |
| 70 float x_min_tuxels_; | 70 float x_min_tuxels_; |
| 71 float x_num_tuxels_; | 71 float x_num_tuxels_; |
| 72 | 72 |
| 73 // Input range for y-axis. | 73 // Input range for y-axis. |
| 74 float y_min_tuxels_; | 74 float y_min_tuxels_; |
| 75 float y_num_tuxels_; | 75 float y_num_tuxels_; |
| 76 | 76 |
| 77 // Output range for x-axis. | |
| 78 float x_min_pixels_; | |
| 79 float x_num_pixels_; | |
| 80 | |
| 81 // Output range for y-axis. | |
| 82 float y_min_pixels_; | |
| 83 float y_num_pixels_; | |
| 84 | |
| 85 // Size of the touchscreen as reported by the driver. | 77 // Size of the touchscreen as reported by the driver. |
| 86 gfx::Size native_size_; | 78 gfx::Size native_size_; |
| 87 | 79 |
| 88 // Touch point currently being updated from the /dev/input/event* stream. | 80 // Touch point currently being updated from the /dev/input/event* stream. |
| 89 int current_slot_; | 81 int current_slot_; |
| 90 | 82 |
| 91 // Bit field tracking which in-progress touch points have been modified | 83 // Bit field tracking which in-progress touch points have been modified |
| 92 // without a syn event. | 84 // without a syn event. |
| 93 std::bitset<MAX_FINGERS> altered_slots_; | 85 std::bitset<MAX_FINGERS> altered_slots_; |
| 94 | 86 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 106 | 98 |
| 107 // In-progress touch points. | 99 // In-progress touch points. |
| 108 InProgressEvents events_[MAX_FINGERS]; | 100 InProgressEvents events_[MAX_FINGERS]; |
| 109 | 101 |
| 110 DISALLOW_COPY_AND_ASSIGN(TouchEventConverterEvdev); | 102 DISALLOW_COPY_AND_ASSIGN(TouchEventConverterEvdev); |
| 111 }; | 103 }; |
| 112 | 104 |
| 113 } // namespace ui | 105 } // namespace ui |
| 114 | 106 |
| 115 #endif // UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_ | 107 #endif // UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_ |
| OLD | NEW |