Chromium Code Reviews| 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 "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 23 | 23 |
| 24 namespace gfx { | 24 namespace gfx { |
| 25 class PointF; | 25 class PointF; |
| 26 } // namespace gfx | 26 } // namespace gfx |
| 27 | 27 |
| 28 namespace ui { | 28 namespace ui { |
| 29 | 29 |
| 30 class CursorDelegateEvdev; | 30 class CursorDelegateEvdev; |
| 31 class DeviceManager; | 31 class DeviceManager; |
| 32 class InputDeviceFactoryEvdev; | 32 class InputDeviceFactoryEvdev; |
| 33 class InputDeviceFactoryProxyEvdev; | |
|
alexst (slow to review)
2015/01/28 19:52:58
InputDeviceFactoryEvdevProxy? I think it's weird t
spang
2015/01/28 21:10:25
Done.
| |
| 33 class SystemInputInjector; | 34 class SystemInputInjector; |
| 34 enum class DomCode; | 35 enum class DomCode; |
| 35 | 36 |
| 36 #if !defined(USE_EVDEV) | 37 #if !defined(USE_EVDEV) |
| 37 #error Missing dependency on ui/events/ozone:events_ozone_evdev | 38 #error Missing dependency on ui/events/ozone:events_ozone_evdev |
| 38 #endif | 39 #endif |
| 39 | 40 |
| 40 // Ozone events implementation for the Linux input subsystem ("evdev"). | 41 // Ozone events implementation for the Linux input subsystem ("evdev"). |
| 41 class EVENTS_OZONE_EVDEV_EXPORT EventFactoryEvdev : public DeviceEventObserver, | 42 class EVENTS_OZONE_EVDEV_EXPORT EventFactoryEvdev : public DeviceEventObserver, |
| 42 public PlatformEventSource { | 43 public PlatformEventSource { |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 97 int NextDeviceId(); | 98 int NextDeviceId(); |
| 98 | 99 |
| 99 // Used to uniquely identify input devices. | 100 // Used to uniquely identify input devices. |
| 100 int last_device_id_; | 101 int last_device_id_; |
| 101 | 102 |
| 102 // Interface for scanning & monitoring input devices. | 103 // Interface for scanning & monitoring input devices. |
| 103 DeviceManager* device_manager_; // Not owned. | 104 DeviceManager* device_manager_; // Not owned. |
| 104 | 105 |
| 105 // Factory for per-device objects. | 106 // Factory for per-device objects. |
| 106 scoped_ptr<InputDeviceFactoryEvdev> input_device_factory_; | 107 scoped_ptr<InputDeviceFactoryEvdev> input_device_factory_; |
| 108 scoped_ptr<InputDeviceFactoryProxyEvdev> input_device_factory_proxy_; | |
| 107 | 109 |
| 108 // Dispatch callback for events. | 110 // Dispatch callback for events. |
| 109 EventDispatchCallback dispatch_callback_; | 111 EventDispatchCallback dispatch_callback_; |
| 110 | 112 |
| 111 // Modifier key state (shift, ctrl, etc). | 113 // Modifier key state (shift, ctrl, etc). |
| 112 EventModifiersEvdev modifiers_; | 114 EventModifiersEvdev modifiers_; |
| 113 | 115 |
| 114 // Mouse button map. | 116 // Mouse button map. |
| 115 MouseButtonMapEvdev button_map_; | 117 MouseButtonMapEvdev button_map_; |
| 116 | 118 |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 128 | 130 |
| 129 // Support weak pointers for attach & detach callbacks. | 131 // Support weak pointers for attach & detach callbacks. |
| 130 base::WeakPtrFactory<EventFactoryEvdev> weak_ptr_factory_; | 132 base::WeakPtrFactory<EventFactoryEvdev> weak_ptr_factory_; |
| 131 | 133 |
| 132 DISALLOW_COPY_AND_ASSIGN(EventFactoryEvdev); | 134 DISALLOW_COPY_AND_ASSIGN(EventFactoryEvdev); |
| 133 }; | 135 }; |
| 134 | 136 |
| 135 } // namespace ui | 137 } // namespace ui |
| 136 | 138 |
| 137 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_ | 139 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_ |
| OLD | NEW |