| 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/event_thread_evdev.h" | 5 #include "ui/events/ozone/evdev/event_thread_evdev.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/thread_task_runner_handle.h" | |
| 13 #include "base/threading/thread.h" | 12 #include "base/threading/thread.h" |
| 13 #include "base/threading/thread_task_runner_handle.h" |
| 14 #include "base/trace_event/trace_event.h" | 14 #include "base/trace_event/trace_event.h" |
| 15 #include "ui/events/ozone/evdev/device_event_dispatcher_evdev.h" | 15 #include "ui/events/ozone/evdev/device_event_dispatcher_evdev.h" |
| 16 #include "ui/events/ozone/evdev/input_device_factory_evdev.h" | 16 #include "ui/events/ozone/evdev/input_device_factory_evdev.h" |
| 17 #include "ui/events/ozone/evdev/input_device_factory_evdev_proxy.h" | 17 #include "ui/events/ozone/evdev/input_device_factory_evdev_proxy.h" |
| 18 | 18 |
| 19 namespace ui { | 19 namespace ui { |
| 20 | 20 |
| 21 namespace { | 21 namespace { |
| 22 | 22 |
| 23 // Internal base::Thread subclass for events thread. | 23 // Internal base::Thread subclass for events thread. |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 CursorDelegateEvdev* cursor, | 75 CursorDelegateEvdev* cursor, |
| 76 const EventThreadStartCallback& callback) { | 76 const EventThreadStartCallback& callback) { |
| 77 TRACE_EVENT0("evdev", "EventThreadEvdev::Start"); | 77 TRACE_EVENT0("evdev", "EventThreadEvdev::Start"); |
| 78 thread_.reset(new EvdevThread(std::move(dispatcher), cursor, callback)); | 78 thread_.reset(new EvdevThread(std::move(dispatcher), cursor, callback)); |
| 79 if (!thread_->StartWithOptions( | 79 if (!thread_->StartWithOptions( |
| 80 base::Thread::Options(base::MessageLoop::TYPE_UI, 0))) | 80 base::Thread::Options(base::MessageLoop::TYPE_UI, 0))) |
| 81 LOG(FATAL) << "Failed to create input thread"; | 81 LOG(FATAL) << "Failed to create input thread"; |
| 82 } | 82 } |
| 83 | 83 |
| 84 } // namespace ui | 84 } // namespace ui |
| OLD | NEW |