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 #include <stddef.h> | 9 #include <stddef.h> |
10 | 10 |
11 #include <utility> | 11 #include <utility> |
12 | 12 |
13 #include "base/memory/ptr_util.h" | 13 #include "base/memory/ptr_util.h" |
14 #include "base/threading/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
15 #include "base/threading/worker_pool.h" | |
16 #include "base/time/time.h" | 15 #include "base/time/time.h" |
17 #include "base/trace_event/trace_event.h" | 16 #include "base/trace_event/trace_event.h" |
18 #include "ui/events/devices/device_data_manager.h" | 17 #include "ui/events/devices/device_data_manager.h" |
19 #include "ui/events/devices/device_util_linux.h" | 18 #include "ui/events/devices/device_util_linux.h" |
20 #include "ui/events/ozone/evdev/device_event_dispatcher_evdev.h" | 19 #include "ui/events/ozone/evdev/device_event_dispatcher_evdev.h" |
21 #include "ui/events/ozone/evdev/event_converter_evdev_impl.h" | 20 #include "ui/events/ozone/evdev/event_converter_evdev_impl.h" |
22 #include "ui/events/ozone/evdev/event_device_info.h" | 21 #include "ui/events/ozone/evdev/event_device_info.h" |
23 #include "ui/events/ozone/evdev/tablet_event_converter_evdev.h" | 22 #include "ui/events/ozone/evdev/tablet_event_converter_evdev.h" |
24 #include "ui/events/ozone/evdev/touch_event_converter_evdev.h" | 23 #include "ui/events/ozone/evdev/touch_event_converter_evdev.h" |
25 | 24 |
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 if (enabled == palm_suppression_enabled_) | 472 if (enabled == palm_suppression_enabled_) |
474 return; | 473 return; |
475 palm_suppression_enabled_ = enabled; | 474 palm_suppression_enabled_ = enabled; |
476 | 475 |
477 for (const auto& it : converters_) { | 476 for (const auto& it : converters_) { |
478 it.second->SetEnabled(IsDeviceEnabled(it.second.get())); | 477 it.second->SetEnabled(IsDeviceEnabled(it.second.get())); |
479 } | 478 } |
480 } | 479 } |
481 | 480 |
482 } // namespace ui | 481 } // namespace ui |
OLD | NEW |