OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "app/keyboard_code_conversion_win.h" | 5 #include "app/keyboard_code_conversion_win.h" |
6 | 6 |
7 namespace app { | 7 namespace app { |
8 | 8 |
9 WORD WindowsKeyCodeForKeyboardCode(app::KeyboardCode keycode) { | 9 WORD WindowsKeyCodeForKeyboardCode(app::KeyboardCode keycode) { |
10 return static_cast<WORD>(keycode); | 10 return static_cast<WORD>(keycode); |
11 } | 11 } |
12 | 12 |
13 app::KeyboardCode KeyboardCodeForWindowsKeyCode(WORD keycode) { | 13 app::KeyboardCode KeyboardCodeForWindowsKeyCode(WORD keycode) { |
14 return static_cast<app::KeyboardCode>(keycode); | 14 return static_cast<app::KeyboardCode>(keycode); |
15 } | 15 } |
16 | 16 |
17 } // namespace app | 17 } // namespace app |
OLD | NEW |