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/event_converter_evdev_impl.h" | 5 #include "ui/events/ozone/evdev/event_converter_evdev_impl.h" |
6 | 6 |
7 #include <errno.h> | 7 #include <errno.h> |
8 #include <linux/input.h> | 8 #include <linux/input.h> |
9 | 9 |
10 #include "base/trace_event/trace_event.h" | 10 #include "base/trace_event/trace_event.h" |
11 #include "ui/events/event.h" | 11 #include "ui/events/event.h" |
12 #include "ui/events/event_utils.h" | 12 #include "ui/events/event_utils.h" |
13 #include "ui/events/keycodes/dom4/keycode_converter.h" | 13 #include "ui/events/keycodes/dom/keycode_converter.h" |
14 #include "ui/events/ozone/evdev/device_event_dispatcher_evdev.h" | 14 #include "ui/events/ozone/evdev/device_event_dispatcher_evdev.h" |
15 #include "ui/events/ozone/evdev/keyboard_util_evdev.h" | 15 #include "ui/events/ozone/evdev/keyboard_util_evdev.h" |
16 | 16 |
17 namespace ui { | 17 namespace ui { |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 // Values for EV_KEY. | 21 // Values for EV_KEY. |
22 const int kKeyReleaseValue = 0; | 22 const int kKeyReleaseValue = 0; |
23 const int kKeyRepeatValue = 2; | 23 const int kKeyRepeatValue = 2; |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 | 247 |
248 dispatcher_->DispatchMouseMoveEvent( | 248 dispatcher_->DispatchMouseMoveEvent( |
249 MouseMoveEventParams(input_device_.id, cursor_->GetLocation(), | 249 MouseMoveEventParams(input_device_.id, cursor_->GetLocation(), |
250 TimeDeltaFromInputEvent(input))); | 250 TimeDeltaFromInputEvent(input))); |
251 | 251 |
252 x_offset_ = 0; | 252 x_offset_ = 0; |
253 y_offset_ = 0; | 253 y_offset_ = 0; |
254 } | 254 } |
255 | 255 |
256 } // namespace ui | 256 } // namespace ui |
OLD | NEW |