| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include <bitset> | 11 #include <bitset> |
| 12 #include <memory> | 12 #include <memory> |
| 13 | 13 |
| 14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
| 15 #include "base/files/file_path.h" | 15 #include "base/files/file_path.h" |
| 16 #include "base/macros.h" | 16 #include "base/macros.h" |
| 17 #include "base/message_loop/message_pump_libevent.h" | 17 #include "base/message_loop/message_pump_libevent.h" |
| 18 #include "ui/events/event_constants.h" | 18 #include "ui/events/event_constants.h" |
| 19 #include "ui/events/ozone/evdev/event_converter_evdev.h" | 19 #include "ui/events/ozone/evdev/event_converter_evdev.h" |
| 20 #include "ui/events/ozone/evdev/event_device_info.h" | 20 #include "ui/events/ozone/evdev/event_device_info.h" |
| 21 #include "ui/events/ozone/evdev/events_ozone_evdev_export.h" | 21 #include "ui/events/ozone/evdev/events_ozone_evdev_export.h" |
| 22 #include "ui/events/ozone/evdev/touch_evdev_debug_buffer.h" | 22 #include "ui/events/ozone/evdev/touch_evdev_debug_buffer.h" |
| 23 | 23 |
| 24 namespace gfx { | |
| 25 class PointF; | |
| 26 } | |
| 27 | |
| 28 namespace ui { | 24 namespace ui { |
| 29 | 25 |
| 30 class DeviceEventDispatcherEvdev; | 26 class DeviceEventDispatcherEvdev; |
| 31 class TouchEvent; | |
| 32 class TouchNoiseFinder; | 27 class TouchNoiseFinder; |
| 33 struct InProgressTouchEvdev; | 28 struct InProgressTouchEvdev; |
| 34 struct PointerDetails; | |
| 35 | 29 |
| 36 class EVENTS_OZONE_EVDEV_EXPORT TouchEventConverterEvdev | 30 class EVENTS_OZONE_EVDEV_EXPORT TouchEventConverterEvdev |
| 37 : public EventConverterEvdev { | 31 : public EventConverterEvdev { |
| 38 public: | 32 public: |
| 39 TouchEventConverterEvdev(int fd, | 33 TouchEventConverterEvdev(int fd, |
| 40 base::FilePath path, | 34 base::FilePath path, |
| 41 int id, | 35 int id, |
| 42 const EventDeviceInfo& devinfo, | 36 const EventDeviceInfo& devinfo, |
| 43 DeviceEventDispatcherEvdev* dispatcher); | 37 DeviceEventDispatcherEvdev* dispatcher); |
| 44 ~TouchEventConverterEvdev() override; | 38 ~TouchEventConverterEvdev() override; |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 | 147 |
| 154 // Callback to enable/disable palm suppression. | 148 // Callback to enable/disable palm suppression. |
| 155 base::Callback<void(bool)> enable_palm_suppression_callback_; | 149 base::Callback<void(bool)> enable_palm_suppression_callback_; |
| 156 | 150 |
| 157 DISALLOW_COPY_AND_ASSIGN(TouchEventConverterEvdev); | 151 DISALLOW_COPY_AND_ASSIGN(TouchEventConverterEvdev); |
| 158 }; | 152 }; |
| 159 | 153 |
| 160 } // namespace ui | 154 } // namespace ui |
| 161 | 155 |
| 162 #endif // UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_ | 156 #endif // UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_ |
| OLD | NEW |