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" |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 class EVENTS_EXPORT TouchEventConverterEvdev | 22 class EVENTS_EXPORT TouchEventConverterEvdev |
23 : public EventConverterEvdev, | 23 : public EventConverterEvdev, |
24 public 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 const EventDispatchCallback& dispatch); |
32 virtual ~TouchEventConverterEvdev(); | 33 virtual ~TouchEventConverterEvdev(); |
33 | 34 |
34 // Start & stop watching for events. | 35 // Start & stop watching for events. |
35 virtual void Start() OVERRIDE; | 36 virtual void Start() OVERRIDE; |
36 virtual void Stop() OVERRIDE; | 37 virtual void Stop() OVERRIDE; |
37 | 38 |
38 private: | 39 private: |
39 friend class MockTouchEventConverterEvdev; | 40 friend class MockTouchEventConverterEvdev; |
40 | 41 |
41 // Unsafe part of initialization. | 42 // Unsafe part of initialization. |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 // Controller for watching the input fd. | 92 // Controller for watching the input fd. |
92 base::MessagePumpLibevent::FileDescriptorWatcher controller_; | 93 base::MessagePumpLibevent::FileDescriptorWatcher controller_; |
93 | 94 |
94 DISALLOW_COPY_AND_ASSIGN(TouchEventConverterEvdev); | 95 DISALLOW_COPY_AND_ASSIGN(TouchEventConverterEvdev); |
95 }; | 96 }; |
96 | 97 |
97 } // namespace ui | 98 } // namespace ui |
98 | 99 |
99 #endif // UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_ | 100 #endif // UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_ |
100 | 101 |
OLD | NEW |