Fix some surprising reverse key mappings.
commitbc3cca84faa94d8ffc46b867ca18298d46d6d4eb
authorkpschoedel@chromium.org <kpschoedel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 16 Jul 2014 04:19:23 +0000 (16 04:19 +0000)
committerkpschoedel@chromium.org <kpschoedel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 16 Jul 2014 04:19:23 +0000 (16 04:19 +0000)
treefefd88ad05f39802a987f94d68bf8bf8c6de8b84
parentdffb9fcaaa4557a50dd4e4009e4bfc416c444bd5
Fix some surprising reverse key mappings.

Added a guard in |chromeos::EventRewriter::RewriteKeyEvent()|.
Moved |ui::XKeyEventKeyCode()| to share it. Added unit test cases.

BUG=390263
TEST=EventRewriterTest.TestRewriteModifiersRemapMany
R=derat@chromium.org,sadrul@chromium.org

Review URL: https://codereview.chromium.org/378503007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283328 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/chromeos/events/event_rewriter.cc
chrome/browser/chromeos/events/event_rewriter_unittest.cc
ui/events/keycodes/keyboard_code_conversion_x.cc
ui/events/keycodes/keyboard_code_conversion_x.h
ui/events/test/events_test_utils_x11.cc