OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/test/remoting/key_code_conv.h" | 5 #include "chrome/test/remoting/key_code_conv.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 9 #include "base/macros.h" |
7 #include "chrome/test/remoting/key_code_map.h" | 10 #include "chrome/test/remoting/key_code_map.h" |
8 | 11 |
9 namespace remoting { | 12 namespace remoting { |
10 | 13 |
11 ui::KeyboardCode InvalidKeyboardCode() { | 14 ui::KeyboardCode InvalidKeyboardCode() { |
12 return key_code_map[0].vkey_code; | 15 return key_code_map[0].vkey_code; |
13 } | 16 } |
14 | 17 |
15 void GetKeyValuesFromChar( | 18 void GetKeyValuesFromChar( |
16 char c, const char** code, ui::KeyboardCode* vkey_code, bool* shift) { | 19 char c, const char** code, ui::KeyboardCode* vkey_code, bool* shift) { |
(...skipping 10 matching lines...) Expand all Loading... |
27 | 30 |
28 if (key_code_map[i].upper_char == c) { | 31 if (key_code_map[i].upper_char == c) { |
29 *code = key_code_map[i].code; | 32 *code = key_code_map[i].code; |
30 *vkey_code = key_code_map[i].vkey_code; | 33 *vkey_code = key_code_map[i].vkey_code; |
31 *shift = true; | 34 *shift = true; |
32 } | 35 } |
33 } | 36 } |
34 } | 37 } |
35 | 38 |
36 } // namespace remoting | 39 } // namespace remoting |
OLD | NEW |