summaryrefslogtreecommitdiffstats
path: root/ui/base
diff options
context:
space:
mode:
Diffstat (limited to 'ui/base')
-rw-r--r--ui/base/keycodes/keyboard_code_conversion_gtk.cc11
-rw-r--r--ui/base/keycodes/keyboard_code_conversion_gtk.h2
2 files changed, 0 insertions, 13 deletions
diff --git a/ui/base/keycodes/keyboard_code_conversion_gtk.cc b/ui/base/keycodes/keyboard_code_conversion_gtk.cc
index 9161bbf..0d3fcae 100644
--- a/ui/base/keycodes/keyboard_code_conversion_gtk.cc
+++ b/ui/base/keycodes/keyboard_code_conversion_gtk.cc
@@ -82,15 +82,4 @@ int GdkNativeKeyCodeForWindowsKeyCode(KeyboardCode keycode, bool shift) {
return native_keycode;
}
-KeyboardCode KeyboardCodeFromGdkEventKey(GdkEventKey* event) {
- KeyboardCode keycode = WindowsKeyCodeForGdkKeyCode(event->keyval);
- // Gtk's key values are same as X11's keysyms.
- if (keycode == VKEY_UNKNOWN) {
- unsigned int keyval =
- DefaultXKeysymFromHardwareKeycode(event->hardware_keycode);
- keycode = WindowsKeyCodeForGdkKeyCode(keyval);
- }
- return keycode;
-}
-
} // namespace ui
diff --git a/ui/base/keycodes/keyboard_code_conversion_gtk.h b/ui/base/keycodes/keyboard_code_conversion_gtk.h
index 77e1ef8..3593d0c 100644
--- a/ui/base/keycodes/keyboard_code_conversion_gtk.h
+++ b/ui/base/keycodes/keyboard_code_conversion_gtk.h
@@ -52,8 +52,6 @@ UI_EXPORT int GdkKeyCodeForWindowsKeyCode(KeyboardCode keycode, bool shift);
UI_EXPORT int GdkNativeKeyCodeForWindowsKeyCode(KeyboardCode keycode,
bool shift);
-UI_EXPORT KeyboardCode KeyboardCodeFromGdkEventKey(GdkEventKey* event);
-
} // namespace ui
#endif // UI_BASE_KEYCODES_KEYBOARD_CODE_CONVERSION_GTK_H_