diff options
Diffstat (limited to 'ui/events/keycodes/keyboard_code_conversion_win.cc')
-rw-r--r-- | ui/events/keycodes/keyboard_code_conversion_win.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ui/events/keycodes/keyboard_code_conversion_win.cc b/ui/events/keycodes/keyboard_code_conversion_win.cc new file mode 100644 index 0000000..66eeaa7 --- /dev/null +++ b/ui/events/keycodes/keyboard_code_conversion_win.cc @@ -0,0 +1,17 @@ +// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "ui/events/keycodes/keyboard_code_conversion_win.h" + +namespace ui { + +WORD WindowsKeyCodeForKeyboardCode(KeyboardCode keycode) { + return static_cast<WORD>(keycode); +} + +KeyboardCode KeyboardCodeForWindowsKeyCode(WORD keycode) { + return static_cast<KeyboardCode>(keycode); +} + +} // namespace ui |