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 #include "ui/events/ozone/evdev/event_factory_evdev.h" | 5 #include "ui/events/ozone/evdev/event_factory_evdev.h" |
6 | 6 |
7 #include <fcntl.h> | 7 #include <fcntl.h> |
8 #include <linux/input.h> | 8 #include <linux/input.h> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/debug/trace_event.h" | |
12 #include "base/stl_util.h" | 11 #include "base/stl_util.h" |
13 #include "base/task_runner.h" | 12 #include "base/task_runner.h" |
14 #include "base/thread_task_runner_handle.h" | 13 #include "base/thread_task_runner_handle.h" |
15 #include "base/threading/worker_pool.h" | 14 #include "base/threading/worker_pool.h" |
16 #include "base/time/time.h" | 15 #include "base/time/time.h" |
| 16 #include "base/trace_event/trace_event.h" |
17 #include "ui/events/devices/device_data_manager.h" | 17 #include "ui/events/devices/device_data_manager.h" |
18 #include "ui/events/devices/device_util_linux.h" | 18 #include "ui/events/devices/device_util_linux.h" |
19 #include "ui/events/devices/input_device.h" | 19 #include "ui/events/devices/input_device.h" |
20 #include "ui/events/ozone/device/device_event.h" | 20 #include "ui/events/ozone/device/device_event.h" |
21 #include "ui/events/ozone/device/device_manager.h" | 21 #include "ui/events/ozone/device/device_manager.h" |
22 #include "ui/events/ozone/evdev/cursor_delegate_evdev.h" | 22 #include "ui/events/ozone/evdev/cursor_delegate_evdev.h" |
23 #include "ui/events/ozone/evdev/event_converter_evdev_impl.h" | 23 #include "ui/events/ozone/evdev/event_converter_evdev_impl.h" |
24 #include "ui/events/ozone/evdev/input_injector_evdev.h" | 24 #include "ui/events/ozone/evdev/input_injector_evdev.h" |
25 #include "ui/events/ozone/evdev/tablet_event_converter_evdev.h" | 25 #include "ui/events/ozone/evdev/tablet_event_converter_evdev.h" |
26 #include "ui/events/ozone/evdev/touch_event_converter_evdev.h" | 26 #include "ui/events/ozone/evdev/touch_event_converter_evdev.h" |
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 gesture_property_provider_->GetDeviceIdsByType(type, &ids); | 440 gesture_property_provider_->GetDeviceIdsByType(type, &ids); |
441 #endif | 441 #endif |
442 // In the future we can add other device matching logics here. | 442 // In the future we can add other device matching logics here. |
443 | 443 |
444 if (device_ids) | 444 if (device_ids) |
445 device_ids->assign(ids.begin(), ids.end()); | 445 device_ids->assign(ids.begin(), ids.end()); |
446 return !ids.empty(); | 446 return !ids.empty(); |
447 } | 447 } |
448 | 448 |
449 } // namespace ui | 449 } // namespace ui |
OLD | NEW |