chromium/third_party/blink/renderer/platform/windows_keyboard_codes.h

/*
 * Copyright (C) 2010 Apple Inc. All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
 * THE POSSIBILITY OF SUCH DAMAGE.
 */

#ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_WINDOWS_KEYBOARD_CODES_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_WINDOWS_KEYBOARD_CODES_H_

#ifndef VK_UNKNOWN

#define VK_UNKNOWN

// Left mouse button
// Right mouse button
// Control-break processing
// Middle mouse button (three-button mouse)
// VK_XBUTTON1 (05)
// VK_XBUTTON2 (06)

#ifndef VK_BACK
#define VK_BACK
#endif
#ifndef VK_TAB
#define VK_TAB
#endif
#ifndef VK_CLEAR
#define VK_CLEAR
#endif
#ifndef VK_RETURN
#define VK_RETURN
#endif
#ifndef VK_SHIFT
#define VK_SHIFT
#endif
#ifndef VK_CONTROL
#define VK_CONTROL
#endif
#ifndef VK_MENU
#define VK_MENU
#endif
#ifndef VK_PAUSE
#define VK_PAUSE
#endif
#ifndef VK_CAPITAL
#define VK_CAPITAL
#endif
#ifndef VK_KANA
#define VK_KANA
#endif
#ifndef VK_HANGUL
#define VK_HANGUL
#endif
#ifndef VK_JUNJA
#define VK_JUNJA
#endif
#ifndef VK_FINAL
#define VK_FINAL
#endif
#ifndef VK_HANJA
#define VK_HANJA
#endif
#ifndef VK_KANJI
#define VK_KANJI
#endif
#ifndef VK_ESCAPE
#define VK_ESCAPE
#endif
#ifndef VK_CONVERT
#define VK_CONVERT
#endif
#ifndef VK_NONCONVERT
#define VK_NONCONVERT
#endif
#ifndef VK_ACCEPT
#define VK_ACCEPT
#endif
#ifndef VK_MODECHANGE
#define VK_MODECHANGE
#endif
#ifndef VK_SPACE
#define VK_SPACE
#endif
#ifndef VK_PRIOR
#define VK_PRIOR
#endif
#ifndef VK_NEXT
#define VK_NEXT
#endif
#ifndef VK_END
#define VK_END
#endif
#ifndef VK_HOME
#define VK_HOME
#endif
#ifndef VK_LEFT
#define VK_LEFT
#endif
#ifndef VK_UP
#define VK_UP
#endif
#ifndef VK_RIGHT
#define VK_RIGHT
#endif
#ifndef VK_DOWN
#define VK_DOWN
#endif
#ifndef VK_SELECT
#define VK_SELECT
#endif
#ifndef VK_PRINT
#define VK_PRINT
#endif
#ifndef VK_EXECUTE
#define VK_EXECUTE
#endif
#ifndef VK_SNAPSHOT
#define VK_SNAPSHOT
#endif
#ifndef VK_INSERT
#define VK_INSERT
#endif
#ifndef VK_DELETE
#define VK_DELETE
#endif
#ifndef VK_HELP
#define VK_HELP
#endif

#define VK_0
#define VK_1
#define VK_2
#define VK_3
#define VK_4
#define VK_5
#define VK_6
#define VK_7
#define VK_8
#define VK_9
#define VK_A
#define VK_B
#define VK_C
#define VK_D
#define VK_E
#define VK_F
#define VK_G
#define VK_H
#define VK_I
#define VK_J
#define VK_K
#define VK_L
#define VK_M
#define VK_N
#define VK_O
#define VK_P
#define VK_Q
#define VK_R
#define VK_S
#define VK_T
#define VK_U
#define VK_V
#define VK_W
#define VK_X
#define VK_Y
#define VK_Z

#define VK_LWIN

#define VK_RWIN

#define VK_APPS

#define VK_SLEEP

// Num pad keys
#define VK_NUMPAD0
#define VK_NUMPAD1
#define VK_NUMPAD2
#define VK_NUMPAD3
#define VK_NUMPAD4
#define VK_NUMPAD5
#define VK_NUMPAD6
#define VK_NUMPAD7
#define VK_NUMPAD8
#define VK_NUMPAD9
#define VK_MULTIPLY
#define VK_ADD
#define VK_SEPARATOR
#define VK_SUBTRACT
#define VK_DECIMAL
#define VK_DIVIDE

#define VK_F1
#define VK_F2
#define VK_F3
#define VK_F4
#define VK_F5
#define VK_F6
#define VK_F7
#define VK_F8
#define VK_F9
#define VK_F10
#define VK_F11
#define VK_F12
#define VK_F13
#define VK_F14
#define VK_F15
#define VK_F16
#define VK_F17
#define VK_F18
#define VK_F19
#define VK_F20
#define VK_F21
#define VK_F22
#define VK_F23
#define VK_F24

#define VK_NUMLOCK
#define VK_SCROLL
#define VK_LSHIFT
#define VK_RSHIFT
#define VK_LCONTROL
#define VK_RCONTROL
#define VK_LMENU
#define VK_RMENU

#define VK_BROWSER_BACK
#define VK_BROWSER_FORWARD
#define VK_BROWSER_REFRESH
#define VK_BROWSER_STOP
#define VK_BROWSER_SEARCH
#define VK_BROWSER_FAVORITES
#define VK_BROWSER_HOME
#define VK_VOLUME_MUTE
#define VK_VOLUME_DOWN
#define VK_VOLUME_UP
#define VK_MEDIA_NEXT_TRACK
#define VK_MEDIA_PREV_TRACK
#define VK_MEDIA_STOP
#define VK_MEDIA_PLAY_PAUSE
#define VK_MEDIA_LAUNCH_MAIL
#define VK_MEDIA_LAUNCH_MEDIA_SELECT
#define VK_MEDIA_LAUNCH_APP1
#define VK_MEDIA_LAUNCH_APP2

// VK_OEM_1 (BA) Used for miscellaneous characters; it can vary by keyboard.
// Windows 2000/XP: For the US standard keyboard, the ';:' key
#define VK_OEM_1

// Windows 2000/XP: For any country/region, the '+' key
#define VK_OEM_PLUS

// Windows 2000/XP: For any country/region, the ',' key
#define VK_OEM_COMMA

// Windows 2000/XP: For any country/region, the '-' key
#define VK_OEM_MINUS

// Windows 2000/XP: For any country/region, the '.' key
#define VK_OEM_PERIOD

// VK_OEM_2 (BF) Used for miscellaneous characters; it can vary by keyboard.
// Windows 2000/XP: For the US standard keyboard, the '/?' key
#define VK_OEM_2

// VK_OEM_3 (C0) Used for miscellaneous characters; it can vary by keyboard.
// Windows 2000/XP: For the US standard keyboard, the '`~' key
#define VK_OEM_3

// VK_OEM_4 (DB) Used for miscellaneous characters; it can vary by keyboard.
// Windows 2000/XP: For the US standard keyboard, the '[{' key
#define VK_OEM_4

// VK_OEM_5 (DC) Used for miscellaneous characters; it can vary by keyboard.
// Windows 2000/XP: For the US standard keyboard, the '\|' key
#define VK_OEM_5

// VK_OEM_6 (DD) Used for miscellaneous characters; it can vary by keyboard.
// Windows 2000/XP: For the US standard keyboard, the ']}' key
#define VK_OEM_6

// VK_OEM_7 (DE) Used for miscellaneous characters; it can vary by keyboard.
// Windows 2000/XP: For the US standard keyboard, the
// 'single-quote/double-quote' key
#define VK_OEM_7

// VK_OEM_8 (DF) Used for miscellaneous characters; it can vary by keyboard.
#define VK_OEM_8

// VK_OEM_102 (E2) Windows 2000/XP: Either the angle bracket key or the
// backslash key on the RT 102-key keyboard
#define VK_OEM_102

// Windows 95/98/Me, Windows NT 4.0, Windows 2000/XP: IME PROCESS key
#define VK_PROCESSKEY

// Windows 2000/XP: Used to pass Unicode characters as if they were keystrokes.
// The VK_PACKET key is the low word of a 32-bit Virtual Key value used for
// non-keyboard input methods. For more information, see Remark in
// KEYBDINPUT,SendInput, WM_KEYDOWN, and WM_KEYUP
#define VK_PACKET

#define VK_ATTN
#define VK_CRSEL
#define VK_EXSEL
#define VK_EREOF
#define VK_PLAY
#define VK_ZOOM

#define VK_NONAME

#define VK_PA1

#define VK_OEM_CLEAR

#endif  // VK_UNKNOWN

#endif  // THIRD_PARTY_BLINK_RENDERER_PLATFORM_WINDOWS_KEYBOARD_CODES_H_