| 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/event.h" | 5 #include "ui/events/event.h" |
| 6 #include "ui/events/event_utils.h" | 6 #include "ui/events/event_utils.h" |
| 7 #include "ui/events/keycodes/dom3/dom_code.h" | 7 #include "ui/events/keycodes/dom/dom_code.h" |
| 8 #include "ui/events/ozone/evdev/cursor_delegate_evdev.h" | 8 #include "ui/events/ozone/evdev/cursor_delegate_evdev.h" |
| 9 #include "ui/events/ozone/evdev/device_event_dispatcher_evdev.h" | 9 #include "ui/events/ozone/evdev/device_event_dispatcher_evdev.h" |
| 10 #include "ui/events/ozone/evdev/event_modifiers_evdev.h" | 10 #include "ui/events/ozone/evdev/event_modifiers_evdev.h" |
| 11 #include "ui/events/ozone/evdev/input_injector_evdev.h" | 11 #include "ui/events/ozone/evdev/input_injector_evdev.h" |
| 12 #include "ui/events/ozone/evdev/keyboard_evdev.h" | 12 #include "ui/events/ozone/evdev/keyboard_evdev.h" |
| 13 #include "ui/events/ozone/evdev/keyboard_util_evdev.h" | 13 #include "ui/events/ozone/evdev/keyboard_util_evdev.h" |
| 14 | 14 |
| 15 namespace ui { | 15 namespace ui { |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 73 |
| 74 int native_keycode = KeycodeConverter::DomCodeToNativeKeycode(physical_key); | 74 int native_keycode = KeycodeConverter::DomCodeToNativeKeycode(physical_key); |
| 75 int evdev_code = NativeCodeToEvdevCode(native_keycode); | 75 int evdev_code = NativeCodeToEvdevCode(native_keycode); |
| 76 | 76 |
| 77 dispatcher_->DispatchKeyEvent(KeyEventParams( | 77 dispatcher_->DispatchKeyEvent(KeyEventParams( |
| 78 kDeviceIdForInjection, evdev_code, down, EventTimeForNow())); | 78 kDeviceIdForInjection, evdev_code, down, EventTimeForNow())); |
| 79 } | 79 } |
| 80 | 80 |
| 81 } // namespace ui | 81 } // namespace ui |
| 82 | 82 |
| OLD | NEW |