| 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_EVENT_CONVERTER_EVDEV_H_ | 5 #ifndef UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_H_ |
| 6 #define UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_H_ | 6 #define UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 73 |
| 74 // Returns true if the converter is used for a touchpad device. | 74 // Returns true if the converter is used for a touchpad device. |
| 75 virtual bool HasTouchpad() const; | 75 virtual bool HasTouchpad() const; |
| 76 | 76 |
| 77 // Returns true if the converter is used for a touchscreen device. | 77 // Returns true if the converter is used for a touchscreen device. |
| 78 virtual bool HasTouchscreen() const; | 78 virtual bool HasTouchscreen() const; |
| 79 | 79 |
| 80 // Returns true if the converter is used for a pen device. | 80 // Returns true if the converter is used for a pen device. |
| 81 virtual bool HasPen() const; | 81 virtual bool HasPen() const; |
| 82 | 82 |
| 83 // Returns true if the converter is used for a device with gamepad input. |
| 84 virtual bool HasGamepad() const; |
| 85 |
| 83 // Returns true if the converter is used for a device with a caps lock LED. | 86 // Returns true if the converter is used for a device with a caps lock LED. |
| 84 virtual bool HasCapsLockLed() const; | 87 virtual bool HasCapsLockLed() const; |
| 85 | 88 |
| 86 // Returns the size of the touchscreen device if the converter is used for a | 89 // Returns the size of the touchscreen device if the converter is used for a |
| 87 // touchscreen device. | 90 // touchscreen device. |
| 88 virtual gfx::Size GetTouchscreenSize() const; | 91 virtual gfx::Size GetTouchscreenSize() const; |
| 89 | 92 |
| 90 // Returns the number of touch points this device supports. Should not be | 93 // Returns the number of touch points this device supports. Should not be |
| 91 // called unless HasTouchscreen() returns true | 94 // called unless HasTouchscreen() returns true |
| 92 virtual int GetTouchPoints() const; | 95 virtual int GetTouchPoints() const; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 // Controller for watching the input fd. | 135 // Controller for watching the input fd. |
| 133 base::MessagePumpLibevent::FileDescriptorWatcher controller_; | 136 base::MessagePumpLibevent::FileDescriptorWatcher controller_; |
| 134 | 137 |
| 135 private: | 138 private: |
| 136 DISALLOW_COPY_AND_ASSIGN(EventConverterEvdev); | 139 DISALLOW_COPY_AND_ASSIGN(EventConverterEvdev); |
| 137 }; | 140 }; |
| 138 | 141 |
| 139 } // namespace ui | 142 } // namespace ui |
| 140 | 143 |
| 141 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_H_ | 144 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_H_ |
| OLD | NEW |