| 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 <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 // Start reading events. | 38 // Start reading events. |
| 39 void Start(); | 39 void Start(); |
| 40 | 40 |
| 41 // Stop reading events. | 41 // Stop reading events. |
| 42 void Stop(); | 42 void Stop(); |
| 43 | 43 |
| 44 // Returns true if the converter is used for a keyboard device. | 44 // Returns true if the converter is used for a keyboard device. |
| 45 virtual bool HasKeyboard() const; | 45 virtual bool HasKeyboard() const; |
| 46 | 46 |
| 47 // Returns true if the converter is used for a mouse device; |
| 48 virtual bool HasMouse() const; |
| 49 |
| 47 // Returns true if the converter is used for a touchpad device. | 50 // Returns true if the converter is used for a touchpad device. |
| 48 virtual bool HasTouchpad() const; | 51 virtual bool HasTouchpad() const; |
| 49 | 52 |
| 50 // Returns true if the converter is used for a touchscreen device. | 53 // Returns true if the converter is used for a touchscreen device. |
| 51 virtual bool HasTouchscreen() const; | 54 virtual bool HasTouchscreen() const; |
| 52 | 55 |
| 53 // Returns the size of the touchscreen device if the converter is used for a | 56 // Returns the size of the touchscreen device if the converter is used for a |
| 54 // touchscreen device. | 57 // touchscreen device. |
| 55 virtual gfx::Size GetTouchscreenSize() const; | 58 virtual gfx::Size GetTouchscreenSize() const; |
| 56 | 59 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 82 // Controller for watching the input fd. | 85 // Controller for watching the input fd. |
| 83 base::MessagePumpLibevent::FileDescriptorWatcher controller_; | 86 base::MessagePumpLibevent::FileDescriptorWatcher controller_; |
| 84 | 87 |
| 85 private: | 88 private: |
| 86 DISALLOW_COPY_AND_ASSIGN(EventConverterEvdev); | 89 DISALLOW_COPY_AND_ASSIGN(EventConverterEvdev); |
| 87 }; | 90 }; |
| 88 | 91 |
| 89 } // namespace ui | 92 } // namespace ui |
| 90 | 93 |
| 91 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_H_ | 94 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_H_ |
| OLD | NEW |