Index: content/shell/renderer/test_runner/KeyCodeMapping.h |
diff --git a/content/shell/renderer/test_runner/KeyCodeMapping.h b/content/shell/renderer/test_runner/KeyCodeMapping.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..75325e11564c60d16aab861258832a07b1c2fda3 |
--- /dev/null |
+++ b/content/shell/renderer/test_runner/KeyCodeMapping.h |
@@ -0,0 +1,41 @@ |
+// Copyright 2013 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. |
+ |
+#ifndef KeyCodeMapping_h |
+#define KeyCodeMapping_h |
+ |
+namespace WebTestRunner { |
+ |
+// 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 |
+enum { |
+ VKEY_RETURN = 0x0D, |
+ VKEY_ESCAPE = 0x1B, |
+ VKEY_PRIOR = 0x21, |
+ VKEY_NEXT = 0x22, |
+ VKEY_END = 0x23, |
+ VKEY_HOME = 0x24, |
+ VKEY_LEFT = 0x25, |
+ VKEY_UP = 0x26, |
+ VKEY_RIGHT = 0x27, |
+ VKEY_DOWN = 0x28, |
+ VKEY_SNAPSHOT = 0x2C, |
+ VKEY_INSERT = 0x2D, |
+ VKEY_DELETE = 0x2E, |
+ VKEY_APPS = 0x5D, |
+ VKEY_F1 = 0x70, |
+ VKEY_NUMLOCK = 0x90, |
+ VKEY_LSHIFT = 0xA0, |
+ VKEY_RSHIFT = 0xA1, |
+ VKEY_LCONTROL = 0xA2, |
+ VKEY_RCONTROL = 0xA3, |
+ VKEY_LMENU = 0xA4, |
+ VKEY_RMENU = 0xA5, |
+}; |
+ |
+// Map a windows keycode to a native keycode on defined(__linux__) && defined(TOOLKIT_GTK). |
+int NativeKeyCodeForWindowsKeyCode(int keysym); |
+ |
+} |
+ |
+#endif // KeyCodeMapping_h |