Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(938)

Side by Side Diff: ui/events/platform/x11/x11_hotplug_event_handler.cc

Issue 1968923003: Fix include path for moved thread_task_runner_handle.h header in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a1_move_task_runner_handle
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc ('k') | ui/events/test/event_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698