1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/plugins/base/android/ANPKeyCodes.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,152 @@ 1.4 +/* 1.5 + * Copyright 2008, The Android Open Source Project 1.6 + * 1.7 + * Redistribution and use in source and binary forms, with or without 1.8 + * modification, are permitted provided that the following conditions 1.9 + * are met: 1.10 + * * Redistributions of source code must retain the above copyright 1.11 + * notice, this list of conditions and the following disclaimer. 1.12 + * * Redistributions in binary form must reproduce the above copyright 1.13 + * notice, this list of conditions and the following disclaimer in the 1.14 + * documentation and/or other materials provided with the distribution. 1.15 + * 1.16 + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY 1.17 + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1.18 + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 1.19 + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 1.20 + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 1.21 + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 1.22 + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 1.23 + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 1.24 + * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 1.25 + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 1.26 + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 1.27 + */ 1.28 + 1.29 +#ifndef ANPKeyCodes_DEFINED 1.30 +#define ANPKeyCodes_DEFINED 1.31 + 1.32 +/* List the key codes that are set to a plugin in the ANPKeyEvent. 1.33 + 1.34 + These exactly match the values in android/view/KeyEvent.java and the 1.35 + corresponding .h file android/keycodes.h. 1.36 +*/ 1.37 +enum ANPKeyCodes { 1.38 + kUnknown_ANPKeyCode = 0, 1.39 + 1.40 + kSoftLeft_ANPKeyCode = 1, 1.41 + kSoftRight_ANPKeyCode = 2, 1.42 + kHome_ANPKeyCode = 3, 1.43 + kBack_ANPKeyCode = 4, 1.44 + kCall_ANPKeyCode = 5, 1.45 + kEndCall_ANPKeyCode = 6, 1.46 + k0_ANPKeyCode = 7, 1.47 + k1_ANPKeyCode = 8, 1.48 + k2_ANPKeyCode = 9, 1.49 + k3_ANPKeyCode = 10, 1.50 + k4_ANPKeyCode = 11, 1.51 + k5_ANPKeyCode = 12, 1.52 + k6_ANPKeyCode = 13, 1.53 + k7_ANPKeyCode = 14, 1.54 + k8_ANPKeyCode = 15, 1.55 + k9_ANPKeyCode = 16, 1.56 + kStar_ANPKeyCode = 17, 1.57 + kPound_ANPKeyCode = 18, 1.58 + kDpadUp_ANPKeyCode = 19, 1.59 + kDpadDown_ANPKeyCode = 20, 1.60 + kDpadLeft_ANPKeyCode = 21, 1.61 + kDpadRight_ANPKeyCode = 22, 1.62 + kDpadCenter_ANPKeyCode = 23, 1.63 + kVolumeUp_ANPKeyCode = 24, 1.64 + kVolumeDown_ANPKeyCode = 25, 1.65 + kPower_ANPKeyCode = 26, 1.66 + kCamera_ANPKeyCode = 27, 1.67 + kClear_ANPKeyCode = 28, 1.68 + kA_ANPKeyCode = 29, 1.69 + kB_ANPKeyCode = 30, 1.70 + kC_ANPKeyCode = 31, 1.71 + kD_ANPKeyCode = 32, 1.72 + kE_ANPKeyCode = 33, 1.73 + kF_ANPKeyCode = 34, 1.74 + kG_ANPKeyCode = 35, 1.75 + kH_ANPKeyCode = 36, 1.76 + kI_ANPKeyCode = 37, 1.77 + kJ_ANPKeyCode = 38, 1.78 + kK_ANPKeyCode = 39, 1.79 + kL_ANPKeyCode = 40, 1.80 + kM_ANPKeyCode = 41, 1.81 + kN_ANPKeyCode = 42, 1.82 + kO_ANPKeyCode = 43, 1.83 + kP_ANPKeyCode = 44, 1.84 + kQ_ANPKeyCode = 45, 1.85 + kR_ANPKeyCode = 46, 1.86 + kS_ANPKeyCode = 47, 1.87 + kT_ANPKeyCode = 48, 1.88 + kU_ANPKeyCode = 49, 1.89 + kV_ANPKeyCode = 50, 1.90 + kW_ANPKeyCode = 51, 1.91 + kX_ANPKeyCode = 52, 1.92 + kY_ANPKeyCode = 53, 1.93 + kZ_ANPKeyCode = 54, 1.94 + kComma_ANPKeyCode = 55, 1.95 + kPeriod_ANPKeyCode = 56, 1.96 + kAltLeft_ANPKeyCode = 57, 1.97 + kAltRight_ANPKeyCode = 58, 1.98 + kShiftLeft_ANPKeyCode = 59, 1.99 + kShiftRight_ANPKeyCode = 60, 1.100 + kTab_ANPKeyCode = 61, 1.101 + kSpace_ANPKeyCode = 62, 1.102 + kSym_ANPKeyCode = 63, 1.103 + kExplorer_ANPKeyCode = 64, 1.104 + kEnvelope_ANPKeyCode = 65, 1.105 + kNewline_ANPKeyCode = 66, 1.106 + kDel_ANPKeyCode = 67, 1.107 + kGrave_ANPKeyCode = 68, 1.108 + kMinus_ANPKeyCode = 69, 1.109 + kEquals_ANPKeyCode = 70, 1.110 + kLeftBracket_ANPKeyCode = 71, 1.111 + kRightBracket_ANPKeyCode = 72, 1.112 + kBackslash_ANPKeyCode = 73, 1.113 + kSemicolon_ANPKeyCode = 74, 1.114 + kApostrophe_ANPKeyCode = 75, 1.115 + kSlash_ANPKeyCode = 76, 1.116 + kAt_ANPKeyCode = 77, 1.117 + kNum_ANPKeyCode = 78, 1.118 + kHeadSetHook_ANPKeyCode = 79, 1.119 + kFocus_ANPKeyCode = 80, 1.120 + kPlus_ANPKeyCode = 81, 1.121 + kMenu_ANPKeyCode = 82, 1.122 + kNotification_ANPKeyCode = 83, 1.123 + kSearch_ANPKeyCode = 84, 1.124 + kMediaPlayPause_ANPKeyCode = 85, 1.125 + kMediaStop_ANPKeyCode = 86, 1.126 + kMediaNext_ANPKeyCode = 87, 1.127 + kMediaPrevious_ANPKeyCode = 88, 1.128 + kMediaRewind_ANPKeyCode = 89, 1.129 + kMediaFastForward_ANPKeyCode = 90, 1.130 + kMute_ANPKeyCode = 91, 1.131 + kPageUp_ANPKeyCode = 92, 1.132 + kPageDown_ANPKeyCode = 93, 1.133 + kPictsymbols_ANPKeyCode = 94, 1.134 + kSwitchCharset_ANPKeyCode = 95, 1.135 + kButtonA_ANPKeyCode = 96, 1.136 + kButtonB_ANPKeyCode = 97, 1.137 + kButtonC_ANPKeyCode = 98, 1.138 + kButtonX_ANPKeyCode = 99, 1.139 + kButtonY_ANPKeyCode = 100, 1.140 + kButtonZ_ANPKeyCode = 101, 1.141 + kButtonL1_ANPKeyCode = 102, 1.142 + kButtonR1_ANPKeyCode = 103, 1.143 + kButtonL2_ANPKeyCode = 104, 1.144 + kButtonR2_ANPKeyCode = 105, 1.145 + kButtonThumbL_ANPKeyCode = 106, 1.146 + kButtonThumbR_ANPKeyCode = 107, 1.147 + kButtonStart_ANPKeyCode = 108, 1.148 + kButtonSelect_ANPKeyCode = 109, 1.149 + kButtonMode_ANPKeyCode = 110, 1.150 + 1.151 + // NOTE: If you add a new keycode here you must also add it to several other files. 1.152 + // Refer to frameworks/base/core/java/android/view/KeyEvent.java for the full list. 1.153 +}; 1.154 + 1.155 +#endif