| 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/message_loop/message_loop.h" |
| 12 #include "base/threading/thread.h" | 13 #include "base/threading/thread.h" |
| 13 #include "base/threading/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
| 14 #include "base/trace_event/trace_event.h" | 15 #include "base/trace_event/trace_event.h" |
| 15 #include "ui/events/ozone/evdev/cursor_delegate_evdev.h" | 16 #include "ui/events/ozone/evdev/cursor_delegate_evdev.h" |
| 16 #include "ui/events/ozone/evdev/device_event_dispatcher_evdev.h" | 17 #include "ui/events/ozone/evdev/device_event_dispatcher_evdev.h" |
| 17 #include "ui/events/ozone/evdev/input_device_factory_evdev.h" | 18 #include "ui/events/ozone/evdev/input_device_factory_evdev.h" |
| 18 #include "ui/events/ozone/evdev/input_device_factory_evdev_proxy.h" | 19 #include "ui/events/ozone/evdev/input_device_factory_evdev_proxy.h" |
| 19 | 20 |
| 20 namespace ui { | 21 namespace ui { |
| 21 | 22 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 TRACE_EVENT0("evdev", "EventThreadEvdev::Start"); | 82 TRACE_EVENT0("evdev", "EventThreadEvdev::Start"); |
| 82 thread_.reset(new EvdevThread(std::move(dispatcher), cursor, callback)); | 83 thread_.reset(new EvdevThread(std::move(dispatcher), cursor, callback)); |
| 83 base::Thread::Options thread_options; | 84 base::Thread::Options thread_options; |
| 84 thread_options.message_loop_type = base::MessageLoop::TYPE_UI; | 85 thread_options.message_loop_type = base::MessageLoop::TYPE_UI; |
| 85 thread_options.priority = base::ThreadPriority::DISPLAY; | 86 thread_options.priority = base::ThreadPriority::DISPLAY; |
| 86 if (!thread_->StartWithOptions(thread_options)) | 87 if (!thread_->StartWithOptions(thread_options)) |
| 87 LOG(FATAL) << "Failed to create input thread"; | 88 LOG(FATAL) << "Failed to create input thread"; |
| 88 } | 89 } |
| 89 | 90 |
| 90 } // namespace ui | 91 } // namespace ui |
| OLD | NEW |