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

Unified Diff: remoting/host/input_injector_linux.cc

Issue 494813002: events: keycodes: Remove the stateless singleton instance of KeycodeConverter (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/client/plugin/pepper_input_handler.cc ('k') | remoting/host/input_injector_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/input_injector_linux.cc
diff --git a/remoting/host/input_injector_linux.cc b/remoting/host/input_injector_linux.cc
index 3e4a5f6a26b05c67f20ca0fbe41315ff52756a09..34e1d38e856d106d8082571b711d6f02c4c67f53 100644
--- a/remoting/host/input_injector_linux.cc
+++ b/remoting/host/input_injector_linux.cc
@@ -276,14 +276,14 @@ void InputInjectorLinux::Core::InjectKeyEvent(const KeyEvent& event) {
return;
}
- ui::KeycodeConverter* key_converter = ui::KeycodeConverter::GetInstance();
- int keycode = key_converter->UsbKeycodeToNativeKeycode(event.usb_keycode());
+ int keycode =
+ ui::KeycodeConverter::UsbKeycodeToNativeKeycode(event.usb_keycode());
VLOG(3) << "Converting USB keycode: " << std::hex << event.usb_keycode()
<< " to keycode: " << keycode << std::dec;
// Ignore events which can't be mapped.
- if (keycode == key_converter->InvalidNativeKeycode())
+ if (keycode == ui::KeycodeConverter::InvalidNativeKeycode())
return;
if (event.pressed()) {
« no previous file with comments | « remoting/client/plugin/pepper_input_handler.cc ('k') | remoting/host/input_injector_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698