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
3 // found in the LICENSE file.
5 // Source of data in this file:
6 // 1. ui/events/keycodes/dom/keycode_converter_data.inc
7 // 2. ui/events/keycodes/keyboard_codes.h
8 // 3. third_party/WebKit/Source/core/platform/chromium/KeyboardCodes.h
9 #ifndef CHROME_TEST_REMOTING_KEY_CODE_TEST_MAP_H_
10 #define CHROME_TEST_REMOTING_KEY_CODE_TEST_MAP_H_
12 #include "ui/events/keycodes/keyboard_codes.h"
17 // The UIEvents (aka: DOM4Events) |code| value as defined in:
18 // https://dvcs.w3.org/hg/d4e/raw-file/tip/source_respec.htm
21 // The (Windows) virtual keyboard code.
22 ui::KeyboardCode vkey_code
;
25 const KeyCodeTestMap test_alpha_map
[] = {
54 const KeyCodeTestMap test_digit_map
[] = {
55 {"Digit1", ui::VKEY_1
},
56 {"Digit2", ui::VKEY_2
},
57 {"Digit3", ui::VKEY_3
},
58 {"Digit4", ui::VKEY_4
},
59 {"Digit5", ui::VKEY_5
},
60 {"Digit6", ui::VKEY_6
},
61 {"Digit7", ui::VKEY_7
},
62 {"Digit8", ui::VKEY_8
},
63 {"Digit9", ui::VKEY_9
},
64 {"Digit0", ui::VKEY_0
},
67 const KeyCodeTestMap test_numpad_map
[] = {
68 {"Numpad0", ui::VKEY_NUMPAD0
},
69 {"Numpad1", ui::VKEY_NUMPAD1
},
70 {"Numpad2", ui::VKEY_NUMPAD2
},
71 {"Numpad3", ui::VKEY_NUMPAD3
},
72 {"Numpad4", ui::VKEY_NUMPAD4
},
73 {"Numpad5", ui::VKEY_NUMPAD5
},
74 {"Numpad6", ui::VKEY_NUMPAD6
},
75 {"Numpad7", ui::VKEY_NUMPAD7
},
76 {"Numpad8", ui::VKEY_NUMPAD8
},
77 {"Numpad9", ui::VKEY_NUMPAD9
},
78 {"NumpadMultiply", ui::VKEY_MULTIPLY
},
79 {"NumpadAdd", ui::VKEY_ADD
},
80 {"NumpadSubtract", ui::VKEY_SUBTRACT
},
81 {"NumpadDecimal", ui::VKEY_DECIMAL
},
82 {"NumpadDivide", ui::VKEY_DIVIDE
},
85 const KeyCodeTestMap test_special_map
[] = {
86 {"Enter", ui::VKEY_RETURN
},
87 {"ShiftRight", ui::VKEY_SHIFT
},
88 {"Space", ui::VKEY_SPACE
},
89 {"Backquote", ui::VKEY_OEM_3
},
90 {"Comma", ui::VKEY_OEM_COMMA
},
91 {"Period", ui::VKEY_OEM_PERIOD
},
92 {"Home", ui::VKEY_HOME
},
95 } // namespace remoting
96 #endif // CHROME_TEST_REMOTING_KEY_CODE_TEST_MAP_H_