| 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_FACTORY_EVDEV_H_ | 5 #ifndef UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_ |
| 6 #define UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_ | 6 #define UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 #if defined(USE_EVDEV_GESTURES) | 37 #if defined(USE_EVDEV_GESTURES) |
| 38 class GesturePropertyProvider; | 38 class GesturePropertyProvider; |
| 39 #endif | 39 #endif |
| 40 | 40 |
| 41 // Ozone events implementation for the Linux input subsystem ("evdev"). | 41 // Ozone events implementation for the Linux input subsystem ("evdev"). |
| 42 class EVENTS_OZONE_EVDEV_EXPORT EventFactoryEvdev : public DeviceEventObserver, | 42 class EVENTS_OZONE_EVDEV_EXPORT EventFactoryEvdev : public DeviceEventObserver, |
| 43 public PlatformEventSource { | 43 public PlatformEventSource { |
| 44 public: | 44 public: |
| 45 EventFactoryEvdev(CursorDelegateEvdev* cursor, | 45 EventFactoryEvdev(CursorDelegateEvdev* cursor, |
| 46 DeviceManager* device_manager); | 46 DeviceManager* device_manager, |
| 47 KeyboardLayoutEngine* keyboard_layout_engine); |
| 47 ~EventFactoryEvdev() override; | 48 ~EventFactoryEvdev() override; |
| 48 | 49 |
| 49 // Get a list of device ids that matches a device type. Return true if the | 50 // Get a list of device ids that matches a device type. Return true if the |
| 50 // list is not empty. |device_ids| can be NULL. | 51 // list is not empty. |device_ids| can be NULL. |
| 51 bool GetDeviceIdsByType(const EventDeviceType type, | 52 bool GetDeviceIdsByType(const EventDeviceType type, |
| 52 std::vector<int>* device_ids); | 53 std::vector<int>* device_ids); |
| 53 | 54 |
| 54 void WarpCursorTo(gfx::AcceleratedWidget widget, | 55 void WarpCursorTo(gfx::AcceleratedWidget widget, |
| 55 const gfx::PointF& location); | 56 const gfx::PointF& location); |
| 56 | 57 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 122 |
| 122 // Support weak pointers for attach & detach callbacks. | 123 // Support weak pointers for attach & detach callbacks. |
| 123 base::WeakPtrFactory<EventFactoryEvdev> weak_ptr_factory_; | 124 base::WeakPtrFactory<EventFactoryEvdev> weak_ptr_factory_; |
| 124 | 125 |
| 125 DISALLOW_COPY_AND_ASSIGN(EventFactoryEvdev); | 126 DISALLOW_COPY_AND_ASSIGN(EventFactoryEvdev); |
| 126 }; | 127 }; |
| 127 | 128 |
| 128 } // namespace ui | 129 } // namespace ui |
| 129 | 130 |
| 130 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_ | 131 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_ |
| OLD | NEW |