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 29 matching lines...) Expand all Loading... |
40 | 40 |
41 #if defined(USE_EVDEV_GESTURES) | 41 #if defined(USE_EVDEV_GESTURES) |
42 class GesturePropertyProvider; | 42 class GesturePropertyProvider; |
43 #endif | 43 #endif |
44 | 44 |
45 // Ozone events implementation for the Linux input subsystem ("evdev"). | 45 // Ozone events implementation for the Linux input subsystem ("evdev"). |
46 class EVENTS_OZONE_EVDEV_EXPORT EventFactoryEvdev : public DeviceEventObserver, | 46 class EVENTS_OZONE_EVDEV_EXPORT EventFactoryEvdev : public DeviceEventObserver, |
47 public PlatformEventSource { | 47 public PlatformEventSource { |
48 public: | 48 public: |
49 EventFactoryEvdev(CursorDelegateEvdev* cursor, | 49 EventFactoryEvdev(CursorDelegateEvdev* cursor, |
50 DeviceManager* device_manager); | 50 DeviceManager* device_manager, |
| 51 KeyboardLayoutEngine* keyboard_layout_engine); |
51 ~EventFactoryEvdev() override; | 52 ~EventFactoryEvdev() override; |
52 | 53 |
53 // Get a list of device ids that matches a device type. Return true if the | 54 // Get a list of device ids that matches a device type. Return true if the |
54 // list is not empty. |device_ids| can be NULL. | 55 // list is not empty. |device_ids| can be NULL. |
55 bool GetDeviceIdsByType(const EventDeviceType type, | 56 bool GetDeviceIdsByType(const EventDeviceType type, |
56 std::vector<int>* device_ids); | 57 std::vector<int>* device_ids); |
57 | 58 |
58 void WarpCursorTo(gfx::AcceleratedWidget widget, | 59 void WarpCursorTo(gfx::AcceleratedWidget widget, |
59 const gfx::PointF& location); | 60 const gfx::PointF& location); |
60 | 61 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 | 129 |
129 // Support weak pointers for attach & detach callbacks. | 130 // Support weak pointers for attach & detach callbacks. |
130 base::WeakPtrFactory<EventFactoryEvdev> weak_ptr_factory_; | 131 base::WeakPtrFactory<EventFactoryEvdev> weak_ptr_factory_; |
131 | 132 |
132 DISALLOW_COPY_AND_ASSIGN(EventFactoryEvdev); | 133 DISALLOW_COPY_AND_ASSIGN(EventFactoryEvdev); |
133 }; | 134 }; |
134 | 135 |
135 } // namespace ui | 136 } // namespace ui |
136 | 137 |
137 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_ | 138 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_ |
OLD | NEW |