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_TABLET_EVENT_CONVERTER_EVDEV_H_ | 5 #ifndef UI_EVENTS_OZONE_TABLET_EVENT_CONVERTER_EVDEV_H_ |
6 #define UI_EVENTS_OZONE_TABLET_EVENT_CONVERTER_EVDEV_H_ | 6 #define UI_EVENTS_OZONE_TABLET_EVENT_CONVERTER_EVDEV_H_ |
7 | 7 |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/message_loop/message_pump_libevent.h" | 9 #include "base/message_loop/message_pump_libevent.h" |
10 #include "ui/events/event.h" | 10 #include "ui/events/event.h" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 // Dispatcher for events. | 56 // Dispatcher for events. |
57 DeviceEventDispatcherEvdev* dispatcher_; | 57 DeviceEventDispatcherEvdev* dispatcher_; |
58 | 58 |
59 int y_abs_location_ = 0; | 59 int y_abs_location_ = 0; |
60 int x_abs_location_ = 0; | 60 int x_abs_location_ = 0; |
61 int x_abs_min_; | 61 int x_abs_min_; |
62 int y_abs_min_; | 62 int y_abs_min_; |
63 int x_abs_range_; | 63 int x_abs_range_; |
64 int y_abs_range_; | 64 int y_abs_range_; |
65 | 65 |
| 66 float tilt_x_ = 0.0f; |
| 67 float tilt_y_ = 0.0f; |
| 68 float pressure_ = 0.0f; |
| 69 int tilt_x_max_; |
| 70 int tilt_y_max_; |
| 71 int pressure_max_; |
| 72 |
66 // BTN_TOOL_ code for the active device | 73 // BTN_TOOL_ code for the active device |
67 int stylus_ = 0; | 74 int stylus_ = 0; |
68 | 75 |
69 // Whether we need to move the cursor | 76 // Whether we need to move the cursor |
70 bool abs_value_dirty_ = false; | 77 bool abs_value_dirty_ = false; |
71 | 78 |
72 // Set if we drop events in kernel (SYN_DROPPED) or in process. | 79 // Set if we drop events in kernel (SYN_DROPPED) or in process. |
73 bool dropped_events_ = false; | 80 bool dropped_events_ = false; |
74 | 81 |
75 DISALLOW_COPY_AND_ASSIGN(TabletEventConverterEvdev); | 82 DISALLOW_COPY_AND_ASSIGN(TabletEventConverterEvdev); |
76 }; | 83 }; |
77 | 84 |
78 } // namespace ui | 85 } // namespace ui |
79 | 86 |
80 #endif // UI_EVENTS_OZONE_TABLET_EVENT_CONVERTER_EVDEV_H_ | 87 #endif // UI_EVENTS_OZONE_TABLET_EVENT_CONVERTER_EVDEV_H_ |
OLD | NEW |