Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Side by Side Diff: content/shell/renderer/test_runner/KeyCodeMapping.h

Issue 110533009: Import TestRunner library into chromium. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
5 #ifndef KeyCodeMapping_h
6 #define KeyCodeMapping_h
7
8 namespace WebTestRunner {
9
10 // The keycodes match the values of the virtual keycodes found here http://msdn. microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx
11 enum {
12 VKEY_RETURN = 0x0D,
13 VKEY_ESCAPE = 0x1B,
14 VKEY_PRIOR = 0x21,
15 VKEY_NEXT = 0x22,
16 VKEY_END = 0x23,
17 VKEY_HOME = 0x24,
18 VKEY_LEFT = 0x25,
19 VKEY_UP = 0x26,
20 VKEY_RIGHT = 0x27,
21 VKEY_DOWN = 0x28,
22 VKEY_SNAPSHOT = 0x2C,
23 VKEY_INSERT = 0x2D,
24 VKEY_DELETE = 0x2E,
25 VKEY_APPS = 0x5D,
26 VKEY_F1 = 0x70,
27 VKEY_NUMLOCK = 0x90,
28 VKEY_LSHIFT = 0xA0,
29 VKEY_RSHIFT = 0xA1,
30 VKEY_LCONTROL = 0xA2,
31 VKEY_RCONTROL = 0xA3,
32 VKEY_LMENU = 0xA4,
33 VKEY_RMENU = 0xA5,
34 };
35
36 // Map a windows keycode to a native keycode on defined(__linux__) && defined(TO OLKIT_GTK).
37 int NativeKeyCodeForWindowsKeyCode(int keysym);
38
39 }
40
41 #endif // KeyCodeMapping_h
OLDNEW
« no previous file with comments | « content/shell/renderer/test_runner/GamepadController.cpp ('k') | content/shell/renderer/test_runner/KeyCodeMapping.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698