OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/input_device_factory_evdev.h" | 5 #include "ui/events/ozone/evdev/input_device_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/debug/trace_event.h" | |
11 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
12 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
13 #include "base/thread_task_runner_handle.h" | 12 #include "base/thread_task_runner_handle.h" |
14 #include "base/threading/worker_pool.h" | 13 #include "base/threading/worker_pool.h" |
15 #include "base/time/time.h" | 14 #include "base/time/time.h" |
| 15 #include "base/trace_event/trace_event.h" |
16 #include "ui/events/devices/device_data_manager.h" | 16 #include "ui/events/devices/device_data_manager.h" |
17 #include "ui/events/devices/device_util_linux.h" | 17 #include "ui/events/devices/device_util_linux.h" |
18 #include "ui/events/ozone/evdev/device_event_dispatcher_evdev.h" | 18 #include "ui/events/ozone/evdev/device_event_dispatcher_evdev.h" |
19 #include "ui/events/ozone/evdev/event_converter_evdev_impl.h" | 19 #include "ui/events/ozone/evdev/event_converter_evdev_impl.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/tablet_event_converter_evdev.h" | 21 #include "ui/events/ozone/evdev/tablet_event_converter_evdev.h" |
22 #include "ui/events/ozone/evdev/touch_event_converter_evdev.h" | 22 #include "ui/events/ozone/evdev/touch_event_converter_evdev.h" |
23 | 23 |
24 #if defined(USE_EVDEV_GESTURES) | 24 #if defined(USE_EVDEV_GESTURES) |
25 #include "ui/events/ozone/evdev/libgestures_glue/event_reader_libevdev_cros.h" | 25 #include "ui/events/ozone/evdev/libgestures_glue/event_reader_libevdev_cros.h" |
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 std::vector<int> ids; | 506 std::vector<int> ids; |
507 gesture_property_provider_->GetDeviceIdsByType(type, &ids); | 507 gesture_property_provider_->GetDeviceIdsByType(type, &ids); |
508 for (size_t i = 0; i < ids.size(); ++i) { | 508 for (size_t i = 0; i < ids.size(); ++i) { |
509 SetGestureBoolProperty(gesture_property_provider_.get(), ids[i], name, | 509 SetGestureBoolProperty(gesture_property_provider_.get(), ids[i], name, |
510 value); | 510 value); |
511 } | 511 } |
512 #endif | 512 #endif |
513 } | 513 } |
514 | 514 |
515 } // namespace ui | 515 } // namespace ui |
OLD | NEW |