diff options
author | raphael.kubo.da.costa@intel.com <raphael.kubo.da.costa@intel.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-17 18:58:02 +0000 |
---|---|---|
committer | raphael.kubo.da.costa@intel.com <raphael.kubo.da.costa@intel.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-17 18:58:02 +0000 |
commit | d2dbbcf86f9cf7be55d83108c6946c3dacb76623 (patch) | |
tree | 1ca67c02e3228d4eb113463d036bae7a3387cb45 /ui/base | |
parent | 898c8a7058e352797129a92600a0a3d00f0df2f4 (diff) | |
download | chromium_src-d2dbbcf86f9cf7be55d83108c6946c3dacb76623.zip chromium_src-d2dbbcf86f9cf7be55d83108c6946c3dacb76623.tar.gz chromium_src-d2dbbcf86f9cf7be55d83108c6946c3dacb76623.tar.bz2 |
Remove KeyboardCodeFromGdkEventKey.
The code which used it was removed in r127507, so there's no reason to keep
it alive.
BUG=
R=ben@chromium.org,sky@chromium.org
Review URL: https://chromiumcodereview.appspot.com/17093002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206765 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/base')
-rw-r--r-- | ui/base/keycodes/keyboard_code_conversion_gtk.cc | 11 | ||||
-rw-r--r-- | ui/base/keycodes/keyboard_code_conversion_gtk.h | 2 |
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_ |