| 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/platform/x11/x11_hotplug_event_handler.h" | 5 #include "ui/events/platform/x11/x11_hotplug_event_handler.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 #include <X11/Xatom.h> | |
| 9 #include <X11/extensions/XInput.h> | 8 #include <X11/extensions/XInput.h> |
| 10 #include <X11/extensions/XInput2.h> | 9 #include <X11/extensions/XInput2.h> |
| 10 #include <X11/Xatom.h> |
| 11 | 11 |
| 12 #include <algorithm> | 12 #include <algorithm> |
| 13 #include <cmath> | 13 #include <cmath> |
| 14 #include <set> | 14 #include <set> |
| 15 #include <string> | 15 #include <string> |
| 16 #include <vector> | 16 #include <vector> |
| 17 | 17 |
| 18 #include "base/bind.h" | 18 #include "base/bind.h" |
| 19 #include "base/command_line.h" | 19 #include "base/command_line.h" |
| 20 #include "base/location.h" | 20 #include "base/location.h" |
| 21 #include "base/logging.h" | 21 #include "base/logging.h" |
| 22 #include "base/process/launch.h" | 22 #include "base/process/launch.h" |
| 23 #include "base/single_thread_task_runner.h" | 23 #include "base/single_thread_task_runner.h" |
| 24 #include "base/strings/string_util.h" | 24 #include "base/strings/string_util.h" |
| 25 #include "base/sys_info.h" | 25 #include "base/sys_info.h" |
| 26 #include "base/thread_task_runner_handle.h" | 26 #include "base/threading/thread_task_runner_handle.h" |
| 27 #include "base/threading/worker_pool.h" | 27 #include "base/threading/worker_pool.h" |
| 28 #include "ui/events/devices/device_data_manager.h" | 28 #include "ui/events/devices/device_data_manager.h" |
| 29 #include "ui/events/devices/device_hotplug_event_observer.h" | 29 #include "ui/events/devices/device_hotplug_event_observer.h" |
| 30 #include "ui/events/devices/device_util_linux.h" | 30 #include "ui/events/devices/device_util_linux.h" |
| 31 #include "ui/events/devices/input_device.h" | 31 #include "ui/events/devices/input_device.h" |
| 32 #include "ui/events/devices/keyboard_device.h" | 32 #include "ui/events/devices/keyboard_device.h" |
| 33 #include "ui/events/devices/touchscreen_device.h" | 33 #include "ui/events/devices/touchscreen_device.h" |
| 34 #include "ui/gfx/x/x11_types.h" | 34 #include "ui/gfx/x/x11_types.h" |
| 35 | 35 |
| 36 #ifndef XI_PROP_PRODUCT_ID | 36 #ifndef XI_PROP_PRODUCT_ID |
| (...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 494 // worker thread. Once the device information is extracted the parsed devices | 494 // worker thread. Once the device information is extracted the parsed devices |
| 495 // will be returned via the callbacks. | 495 // will be returned via the callbacks. |
| 496 base::WorkerPool::PostTask( | 496 base::WorkerPool::PostTask( |
| 497 FROM_HERE, | 497 FROM_HERE, |
| 498 base::Bind(&HandleHotplugEventInWorker, device_infos, display_state, | 498 base::Bind(&HandleHotplugEventInWorker, device_infos, display_state, |
| 499 base::ThreadTaskRunnerHandle::Get(), callbacks), | 499 base::ThreadTaskRunnerHandle::Get(), callbacks), |
| 500 true /* task_is_slow */); | 500 true /* task_is_slow */); |
| 501 } | 501 } |
| 502 | 502 |
| 503 } // namespace ui | 503 } // namespace ui |
| OLD | NEW |