| 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_INPUT_DEVICE_FACTORY_EVDEV_H_ | 5 #ifndef UI_EVENTS_OZONE_EVDEV_INPUT_DEVICE_FACTORY_EVDEV_H_ |
| 6 #define UI_EVENTS_OZONE_EVDEV_INPUT_DEVICE_FACTORY_EVDEV_H_ | 6 #define UI_EVENTS_OZONE_EVDEV_INPUT_DEVICE_FACTORY_EVDEV_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <set> | 10 #include <set> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/callback.h" | 13 #include "base/callback.h" |
| 14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
| 15 #include "base/files/file_path.h" | 15 #include "base/files/file_path.h" |
| 16 #include "base/macros.h" | 16 #include "base/macros.h" |
| 17 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
| 18 #include "base/task_runner.h" | 18 #include "base/task_runner.h" |
| 19 #include "ui/events/ozone/evdev/event_converter_evdev.h" | 19 #include "ui/events/ozone/evdev/event_converter_evdev.h" |
| 20 #include "ui/events/ozone/evdev/event_device_info.h" | 20 #include "ui/events/ozone/evdev/event_device_info.h" |
| 21 #include "ui/events/ozone/evdev/events_ozone_evdev_export.h" | 21 #include "ui/events/ozone/evdev/events_ozone_evdev_export.h" |
| 22 #include "ui/events/ozone/evdev/input_device_settings_evdev.h" | 22 #include "ui/events/ozone/evdev/input_device_settings_evdev.h" |
| 23 | 23 |
| 24 namespace ui { | 24 namespace ui { |
| 25 | 25 |
| 26 class CursorDelegateEvdev; | 26 class CursorDelegateEvdev; |
| 27 class DeviceEventDispatcherEvdev; | 27 class DeviceEventDispatcherEvdev; |
| 28 class InputDeviceFactoryEvdevProxy; | 28 class InputDeviceFactoryEvdevProxy; |
| 29 class PalmSuppressionFilter; |
| 29 | 30 |
| 30 #if !defined(USE_EVDEV) | 31 #if !defined(USE_EVDEV) |
| 31 #error Missing dependency on ui/events/ozone:events_ozone_evdev | 32 #error Missing dependency on ui/events/ozone:events_ozone_evdev |
| 32 #endif | 33 #endif |
| 33 | 34 |
| 34 #if defined(USE_EVDEV_GESTURES) | 35 #if defined(USE_EVDEV_GESTURES) |
| 35 class GesturePropertyProvider; | 36 class GesturePropertyProvider; |
| 36 #endif | 37 #endif |
| 37 | 38 |
| 38 typedef base::Callback<void(std::unique_ptr<std::string>)> | 39 typedef base::Callback<void(std::unique_ptr<std::string>)> |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 | 127 |
| 127 // Whether devices that were present at startup are open. | 128 // Whether devices that were present at startup are open. |
| 128 bool startup_devices_opened_ = false; | 129 bool startup_devices_opened_ = false; |
| 129 | 130 |
| 130 // LEDs. | 131 // LEDs. |
| 131 bool caps_lock_led_enabled_ = false; | 132 bool caps_lock_led_enabled_ = false; |
| 132 | 133 |
| 133 // Device settings. These primarily affect libgestures behavior. | 134 // Device settings. These primarily affect libgestures behavior. |
| 134 InputDeviceSettingsEvdev input_device_settings_; | 135 InputDeviceSettingsEvdev input_device_settings_; |
| 135 | 136 |
| 137 // Palm suppression filter shared by touch event converter. |
| 138 std::unique_ptr<PalmSuppressionFilter> palm_filter_; |
| 139 |
| 136 // Support weak pointers for attach & detach callbacks. | 140 // Support weak pointers for attach & detach callbacks. |
| 137 base::WeakPtrFactory<InputDeviceFactoryEvdev> weak_ptr_factory_; | 141 base::WeakPtrFactory<InputDeviceFactoryEvdev> weak_ptr_factory_; |
| 138 | 142 |
| 139 DISALLOW_COPY_AND_ASSIGN(InputDeviceFactoryEvdev); | 143 DISALLOW_COPY_AND_ASSIGN(InputDeviceFactoryEvdev); |
| 140 }; | 144 }; |
| 141 | 145 |
| 142 } // namespace ui | 146 } // namespace ui |
| 143 | 147 |
| 144 #endif // UI_EVENTS_OZONE_EVDEV_INPUT_DEVICE_FACTORY_EVDEV_H_ | 148 #endif // UI_EVENTS_OZONE_EVDEV_INPUT_DEVICE_FACTORY_EVDEV_H_ |
| OLD | NEW |