| 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 17 matching lines...) Expand all Loading... |
| 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 const EventDispatchCallback& dispatch); |
| 33 virtual ~TouchEventConverterEvdev(); | 33 virtual ~TouchEventConverterEvdev(); |
| 34 | 34 |
| 35 // Start & stop watching for events. | 35 // Start & stop watching for events. |
| 36 virtual void Start() OVERRIDE; | 36 virtual void Start() OVERRIDE; |
| 37 virtual void Stop() OVERRIDE; | 37 virtual void Stop() OVERRIDE; |
| 38 virtual bool HasIndirectTouch() OVERRIDE; |
| 39 virtual bool HasRelXY() OVERRIDE; |
| 38 | 40 |
| 39 private: | 41 private: |
| 40 friend class MockTouchEventConverterEvdev; | 42 friend class MockTouchEventConverterEvdev; |
| 41 | 43 |
| 42 // Unsafe part of initialization. | 44 // Unsafe part of initialization. |
| 43 void Init(const EventDeviceInfo& info); | 45 void Init(const EventDeviceInfo& info); |
| 44 | 46 |
| 45 // Overidden from base::MessagePumpLibevent::Watcher. | 47 // Overidden from base::MessagePumpLibevent::Watcher. |
| 46 virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE; | 48 virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE; |
| 47 virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE; | 49 virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 | 111 |
| 110 // Controller for watching the input fd. | 112 // Controller for watching the input fd. |
| 111 base::MessagePumpLibevent::FileDescriptorWatcher controller_; | 113 base::MessagePumpLibevent::FileDescriptorWatcher controller_; |
| 112 | 114 |
| 113 DISALLOW_COPY_AND_ASSIGN(TouchEventConverterEvdev); | 115 DISALLOW_COPY_AND_ASSIGN(TouchEventConverterEvdev); |
| 114 }; | 116 }; |
| 115 | 117 |
| 116 } // namespace ui | 118 } // namespace ui |
| 117 | 119 |
| 118 #endif // UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_ | 120 #endif // UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_ |
| OLD | NEW |