| OLD | NEW | 
|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/event_converter_ozone.h" | 15 #include "ui/events/ozone/evdev/event_converter.h" | 
| 16 | 16 | 
| 17 namespace ui { | 17 namespace ui { | 
| 18 | 18 | 
| 19 class TouchEvent; | 19 class TouchEvent; | 
| 20 | 20 | 
| 21 class EVENTS_EXPORT TouchEventConverterEvdev | 21 class EVENTS_EXPORT TouchEventConverterEvdev | 
| 22     : public EventConverterOzone, | 22     : public EventConverterEvdev, | 
| 23       base::MessagePumpLibevent::Watcher { | 23       base::MessagePumpLibevent::Watcher { | 
| 24  public: | 24  public: | 
| 25   enum { | 25   enum { | 
| 26     MAX_FINGERS = 11 | 26     MAX_FINGERS = 11 | 
| 27   }; | 27   }; | 
| 28   TouchEventConverterEvdev(int fd, base::FilePath path); | 28   TouchEventConverterEvdev(int fd, base::FilePath path); | 
| 29   virtual ~TouchEventConverterEvdev(); | 29   virtual ~TouchEventConverterEvdev(); | 
| 30 | 30 | 
| 31  private: | 31  private: | 
| 32   friend class MockTouchEventConverterEvdev; | 32   friend class MockTouchEventConverterEvdev; | 
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 84   // Controller for watching the input fd. | 84   // Controller for watching the input fd. | 
| 85   base::MessagePumpLibevent::FileDescriptorWatcher controller_; | 85   base::MessagePumpLibevent::FileDescriptorWatcher controller_; | 
| 86 | 86 | 
| 87   DISALLOW_COPY_AND_ASSIGN(TouchEventConverterEvdev); | 87   DISALLOW_COPY_AND_ASSIGN(TouchEventConverterEvdev); | 
| 88 }; | 88 }; | 
| 89 | 89 | 
| 90 }  // namespace ui | 90 }  // namespace ui | 
| 91 | 91 | 
| 92 #endif  // UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_ | 92 #endif  // UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_ | 
| 93 | 93 | 
| OLD | NEW | 
|---|