Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(533)

Side by Side Diff: ui/events/ozone/evdev/input_injector_evdev.cc

Issue 1136503003: Consolidate ui/events/keycodes/dom[34]/ into .../dom/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ui/events/ozone/evdev/event_converter_evdev_impl_unittest.cc ('k') | ui/events/ozone/evdev/keyboard_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698