| 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" |
| 11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/message_loop/message_pump_libevent.h" | 12 #include "base/message_loop/message_pump_libevent.h" |
| 13 #include "ui/events/event_constants.h" | 13 #include "ui/events/event_constants.h" |
| 14 #include "ui/events/events_export.h" | 14 #include "ui/events/events_export.h" |
| 15 #include "ui/events/ozone/evdev/event_converter_evdev.h" | 15 #include "ui/events/ozone/evdev/event_converter_evdev.h" |
| 16 #include "ui/events/ozone/evdev/event_device_info.h" | 16 #include "ui/events/ozone/evdev/event_device_info.h" |
| 17 | 17 |
| 18 namespace ui { | 18 namespace ui { |
| 19 | 19 |
| 20 class TouchEvent; | 20 class TouchEvent; |
| 21 | 21 |
| 22 class EVENTS_EXPORT TouchEventConverterEvdev | 22 class EVENTS_EXPORT TouchEventConverterEvdev |
| 23 : public EventConverterEvdev, | 23 : public EventConverterEvdev, |
| 24 base::MessagePumpLibevent::Watcher { | 24 public base::MessagePumpLibevent::Watcher { |
| 25 public: | 25 public: |
| 26 enum { | 26 enum { |
| 27 MAX_FINGERS = 11 | 27 MAX_FINGERS = 11 |
| 28 }; | 28 }; |
| 29 TouchEventConverterEvdev(int fd, | 29 TouchEventConverterEvdev(int fd, |
| 30 base::FilePath path, | 30 base::FilePath path, |
| 31 const EventDeviceInfo& info); | 31 const EventDeviceInfo& info); |
| 32 virtual ~TouchEventConverterEvdev(); | 32 virtual ~TouchEventConverterEvdev(); |
| 33 | 33 |
| 34 // Start & stop watching for events. | 34 // Start & stop watching for events. |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 // Controller for watching the input fd. | 91 // Controller for watching the input fd. |
| 92 base::MessagePumpLibevent::FileDescriptorWatcher controller_; | 92 base::MessagePumpLibevent::FileDescriptorWatcher controller_; |
| 93 | 93 |
| 94 DISALLOW_COPY_AND_ASSIGN(TouchEventConverterEvdev); | 94 DISALLOW_COPY_AND_ASSIGN(TouchEventConverterEvdev); |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 } // namespace ui | 97 } // namespace ui |
| 98 | 98 |
| 99 #endif // UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_ | 99 #endif // UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_ |
| 100 | 100 |
| OLD | NEW |