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 "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/debug/trace_event.h" | |
9 #include "base/task_runner.h" | 8 #include "base/task_runner.h" |
10 #include "base/thread_task_runner_handle.h" | 9 #include "base/thread_task_runner_handle.h" |
11 #include "base/threading/worker_pool.h" | 10 #include "base/threading/worker_pool.h" |
12 #include "base/time/time.h" | 11 #include "base/time/time.h" |
| 12 #include "base/trace_event/trace_event.h" |
13 #include "ui/events/devices/device_data_manager.h" | 13 #include "ui/events/devices/device_data_manager.h" |
14 #include "ui/events/devices/input_device.h" | 14 #include "ui/events/devices/input_device.h" |
15 #include "ui/events/ozone/device/device_event.h" | 15 #include "ui/events/ozone/device/device_event.h" |
16 #include "ui/events/ozone/device/device_manager.h" | 16 #include "ui/events/ozone/device/device_manager.h" |
17 #include "ui/events/ozone/evdev/cursor_delegate_evdev.h" | 17 #include "ui/events/ozone/evdev/cursor_delegate_evdev.h" |
18 #include "ui/events/ozone/evdev/input_controller_evdev.h" | 18 #include "ui/events/ozone/evdev/input_controller_evdev.h" |
19 #include "ui/events/ozone/evdev/input_device_factory_evdev.h" | 19 #include "ui/events/ozone/evdev/input_device_factory_evdev.h" |
20 #include "ui/events/ozone/evdev/input_injector_evdev.h" | 20 #include "ui/events/ozone/evdev/input_injector_evdev.h" |
21 | 21 |
22 namespace ui { | 22 namespace ui { |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 weak_ptr_factory_.GetWeakPtr(), | 307 weak_ptr_factory_.GetWeakPtr(), |
308 MouseMoveEventParams(-1 /* device_id */, | 308 MouseMoveEventParams(-1 /* device_id */, |
309 cursor_->GetLocation()))); | 309 cursor_->GetLocation()))); |
310 } | 310 } |
311 | 311 |
312 int EventFactoryEvdev::NextDeviceId() { | 312 int EventFactoryEvdev::NextDeviceId() { |
313 return ++last_device_id_; | 313 return ++last_device_id_; |
314 } | 314 } |
315 | 315 |
316 } // namespace ui | 316 } // namespace ui |
OLD | NEW |