| 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 <linux/input.h> | 8 #include <linux/input.h> |
| 9 #include <stddef.h> | 9 #include <stddef.h> |
| 10 #include <unistd.h> | 10 #include <unistd.h> |
| 11 | 11 |
| 12 #include <memory> | 12 #include <memory> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "base/bind.h" | 15 #include "base/bind.h" |
| 16 #include "base/command_line.h" | 16 #include "base/command_line.h" |
| 17 #include "base/files/file_util.h" | 17 #include "base/files/file_util.h" |
| 18 #include "base/macros.h" | 18 #include "base/macros.h" |
| 19 #include "base/message_loop/message_loop.h" |
| 19 #include "base/posix/eintr_wrapper.h" | 20 #include "base/posix/eintr_wrapper.h" |
| 20 #include "base/run_loop.h" | 21 #include "base/run_loop.h" |
| 21 #include "base/time/time.h" | 22 #include "base/time/time.h" |
| 22 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
| 23 #include "ui/events/devices/device_data_manager.h" | 24 #include "ui/events/devices/device_data_manager.h" |
| 24 #include "ui/events/event_switches.h" | 25 #include "ui/events/event_switches.h" |
| 25 #include "ui/events/ozone/evdev/device_event_dispatcher_evdev.h" | 26 #include "ui/events/ozone/evdev/device_event_dispatcher_evdev.h" |
| 26 #include "ui/events/ozone/evdev/event_device_test_util.h" | 27 #include "ui/events/ozone/evdev/event_device_test_util.h" |
| 27 #include "ui/events/ozone/evdev/touch_evdev_types.h" | 28 #include "ui/events/ozone/evdev/touch_evdev_types.h" |
| 28 #include "ui/events/ozone/evdev/touch_filter/false_touch_finder.h" | 29 #include "ui/events/ozone/evdev/touch_filter/false_touch_finder.h" |
| (...skipping 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1109 event = dispatched_touch_event(3); | 1110 event = dispatched_touch_event(3); |
| 1110 EXPECT_EQ(ET_TOUCH_RELEASED, event.type); | 1111 EXPECT_EQ(ET_TOUCH_RELEASED, event.type); |
| 1111 EXPECT_EQ(8930, event.location.x()); | 1112 EXPECT_EQ(8930, event.location.x()); |
| 1112 EXPECT_EQ(980, event.location.y()); | 1113 EXPECT_EQ(980, event.location.y()); |
| 1113 EXPECT_EQ(EventPointerType::POINTER_TYPE_PEN, | 1114 EXPECT_EQ(EventPointerType::POINTER_TYPE_PEN, |
| 1114 event.pointer_details.pointer_type); | 1115 event.pointer_details.pointer_type); |
| 1115 EXPECT_EQ(0.f / 1024, event.pointer_details.force); | 1116 EXPECT_EQ(0.f / 1024, event.pointer_details.force); |
| 1116 } | 1117 } |
| 1117 | 1118 |
| 1118 } // namespace ui | 1119 } // namespace ui |
| OLD | NEW |