OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/base/ozone/touch_event_converter_ozone.h" | 5 #include "ui/base/ozone/touch_event_converter_ozone.h" |
6 | 6 |
7 #include <fcntl.h> | 7 #include <fcntl.h> |
8 #include <linux/input.h> | 8 #include <linux/input.h> |
9 #include <poll.h> | 9 #include <poll.h> |
10 #include <stdio.h> | 10 #include <stdio.h> |
11 #include <unistd.h> | 11 #include <unistd.h> |
12 | 12 |
13 #include <cmath> | 13 #include <cmath> |
14 | 14 |
15 #include "base/bind.h" | 15 #include "base/bind.h" |
16 #include "base/callback.h" | 16 #include "base/callback.h" |
17 #include "base/logging.h" | 17 #include "base/logging.h" |
18 #include "base/message_loop.h" | 18 #include "base/message_loop/message_loop.h" |
19 #include "base/message_pump_ozone.h" | 19 #include "base/message_loop/message_pump_ozone.h" |
20 #include "ui/base/events/event.h" | 20 #include "ui/base/events/event.h" |
21 #include "ui/base/events/event_constants.h" | 21 #include "ui/base/events/event_constants.h" |
22 #include "ui/base/ozone/surface_factory_ozone.h" | 22 #include "ui/base/ozone/surface_factory_ozone.h" |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
26 // Number is determined empirically. | 26 // Number is determined empirically. |
27 // TODO(rjkroege): Configure this per device. | 27 // TODO(rjkroege): Configure this per device. |
28 const float kFingerWidth = 25.f; | 28 const float kFingerWidth = 25.f; |
29 | 29 |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 NOTREACHED() << "SYN_MT events not supported."; | 172 NOTREACHED() << "SYN_MT events not supported."; |
173 break; | 173 break; |
174 } | 174 } |
175 } else { | 175 } else { |
176 NOTREACHED(); | 176 NOTREACHED(); |
177 } | 177 } |
178 } | 178 } |
179 } | 179 } |
180 | 180 |
181 } // namespace ui | 181 } // namespace ui |
OLD | NEW |