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 <errno.h> |
5 #include <linux/input.h> | 6 #include <linux/input.h> |
6 | 7 |
7 #include "ui/events/ozone/evdev/event_converter_evdev.h" | 8 #include "ui/events/ozone/evdev/event_converter_evdev.h" |
8 | 9 |
9 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
10 #include "base/logging.h" | 11 #include "base/logging.h" |
11 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
12 #include "base/trace_event/trace_event.h" | 13 #include "base/trace_event/trace_event.h" |
13 #include "ui/events/devices/input_device.h" | 14 #include "ui/events/devices/input_device.h" |
14 | 15 |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 | 140 |
140 void EventConverterEvdev::SetTouchEventLoggingEnabled(bool enabled) { | 141 void EventConverterEvdev::SetTouchEventLoggingEnabled(bool enabled) { |
141 } | 142 } |
142 | 143 |
143 base::TimeDelta EventConverterEvdev::TimeDeltaFromInputEvent( | 144 base::TimeDelta EventConverterEvdev::TimeDeltaFromInputEvent( |
144 const input_event& event) { | 145 const input_event& event) { |
145 return base::TimeDelta::FromMicroseconds(event.time.tv_sec * 1000000 + | 146 return base::TimeDelta::FromMicroseconds(event.time.tv_sec * 1000000 + |
146 event.time.tv_usec); | 147 event.time.tv_usec); |
147 } | 148 } |
148 } // namespace ui | 149 } // namespace ui |
OLD | NEW |