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/touch_event_converter_evdev.h" | 5 #include "ui/events/ozone/evdev/touch_event_converter_evdev.h" |
6 | 6 |
7 #include <errno.h> | 7 #include <errno.h> |
8 #include <fcntl.h> | 8 #include <fcntl.h> |
9 #include <linux/input.h> | 9 #include <linux/input.h> |
10 #include <poll.h> | 10 #include <poll.h> |
11 #include <stdio.h> | 11 #include <stdio.h> |
12 #include <unistd.h> | 12 #include <unistd.h> |
13 | 13 |
14 #include <cmath> | 14 #include <cmath> |
15 #include <limits> | 15 #include <limits> |
16 | 16 |
17 #include "base/bind.h" | 17 #include "base/bind.h" |
18 #include "base/callback.h" | 18 #include "base/callback.h" |
19 #include "base/command_line.h" | 19 #include "base/command_line.h" |
20 #include "base/logging.h" | 20 #include "base/logging.h" |
21 #include "base/memory/scoped_vector.h" | 21 #include "base/memory/scoped_vector.h" |
22 #include "base/message_loop/message_loop.h" | 22 #include "base/message_loop/message_loop.h" |
23 #include "base/strings/string_number_conversions.h" | 23 #include "base/strings/string_number_conversions.h" |
24 #include "base/strings/string_util.h" | 24 #include "base/strings/string_util.h" |
25 #include "base/strings/stringprintf.h" | 25 #include "base/strings/stringprintf.h" |
26 #include "ui/events/device_util_linux.h" | 26 #include "ui/events/devices/device_util_linux.h" |
27 #include "ui/events/event.h" | 27 #include "ui/events/event.h" |
28 #include "ui/events/event_constants.h" | 28 #include "ui/events/event_constants.h" |
29 #include "ui/events/event_switches.h" | 29 #include "ui/events/event_switches.h" |
30 #include "ui/gfx/screen.h" | 30 #include "ui/gfx/screen.h" |
31 | 31 |
32 namespace { | 32 namespace { |
33 | 33 |
34 struct TouchCalibration { | 34 struct TouchCalibration { |
35 int bezel_left; | 35 int bezel_left; |
36 int bezel_right; | 36 int bezel_right; |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 | 325 |
326 // Subsequent events for this finger will be touch-move until it | 326 // Subsequent events for this finger will be touch-move until it |
327 // is released. | 327 // is released. |
328 events_[i].type_ = ET_TOUCH_MOVED; | 328 events_[i].type_ = ET_TOUCH_MOVED; |
329 } | 329 } |
330 } | 330 } |
331 altered_slots_.reset(); | 331 altered_slots_.reset(); |
332 } | 332 } |
333 | 333 |
334 } // namespace ui | 334 } // namespace ui |
OLD | NEW |