| 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 | 13 |
| 13 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
| 14 #include "base/files/file_path.h" | 15 #include "base/files/file_path.h" |
| 15 #include "base/macros.h" | 16 #include "base/macros.h" |
| 16 #include "base/memory/scoped_ptr.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 ui { | 24 namespace ui { |
| 25 | 25 |
| 26 class DeviceEventDispatcherEvdev; | 26 class DeviceEventDispatcherEvdev; |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 // Touch point currently being updated from the /dev/input/event* stream. | 117 // Touch point currently being updated from the /dev/input/event* stream. |
| 118 size_t current_slot_ = 0; | 118 size_t current_slot_ = 0; |
| 119 | 119 |
| 120 // Flag that indicates if the touch logging enabled or not. | 120 // Flag that indicates if the touch logging enabled or not. |
| 121 bool touch_logging_enabled_ = true; | 121 bool touch_logging_enabled_ = true; |
| 122 | 122 |
| 123 // In-progress touch points. | 123 // In-progress touch points. |
| 124 std::vector<InProgressTouchEvdev> events_; | 124 std::vector<InProgressTouchEvdev> events_; |
| 125 | 125 |
| 126 // Finds touch noise. | 126 // Finds touch noise. |
| 127 scoped_ptr<TouchNoiseFinder> touch_noise_finder_; | 127 std::unique_ptr<TouchNoiseFinder> touch_noise_finder_; |
| 128 | 128 |
| 129 // Records the recent touch events. It is used to fill the feedback reports | 129 // Records the recent touch events. It is used to fill the feedback reports |
| 130 TouchEventLogEvdev touch_evdev_debug_buffer_; | 130 TouchEventLogEvdev touch_evdev_debug_buffer_; |
| 131 | 131 |
| 132 DISALLOW_COPY_AND_ASSIGN(TouchEventConverterEvdev); | 132 DISALLOW_COPY_AND_ASSIGN(TouchEventConverterEvdev); |
| 133 }; | 133 }; |
| 134 | 134 |
| 135 } // namespace ui | 135 } // namespace ui |
| 136 | 136 |
| 137 #endif // UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_ | 137 #endif // UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_ |
| OLD | NEW |