| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2007, The Android Open Source Project | 2 * Copyright 2007, The Android Open Source Project |
| 3 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. | 3 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. |
| 4 * Copyright (C) 2006 Michael Emmel mike.emmel@gmail.com | 4 * Copyright (C) 2006 Michael Emmel mike.emmel@gmail.com |
| 5 * Copyright (C) 2007 Holger Hans Peter Freyther | 5 * Copyright (C) 2007 Holger Hans Peter Freyther |
| 6 * Copyright (C) 2008 Collabora, Ltd. All rights reserved. | 6 * Copyright (C) 2008 Collabora, Ltd. All rights reserved. |
| 7 * All rights reserved. | 7 * All rights reserved. |
| 8 * | 8 * |
| 9 * Redistribution and use in source and binary forms, with or without | 9 * Redistribution and use in source and binary forms, with or without |
| 10 * modification, are permitted provided that the following conditions | 10 * modification, are permitted provided that the following conditions |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 AKEYCODE_NUMPAD_DIVIDE = 154, | 77 AKEYCODE_NUMPAD_DIVIDE = 154, |
| 78 AKEYCODE_NUMPAD_MULTIPLY = 155, | 78 AKEYCODE_NUMPAD_MULTIPLY = 155, |
| 79 AKEYCODE_NUMPAD_SUBTRACT = 156, | 79 AKEYCODE_NUMPAD_SUBTRACT = 156, |
| 80 AKEYCODE_NUMPAD_ADD = 157, | 80 AKEYCODE_NUMPAD_ADD = 157, |
| 81 AKEYCODE_NUMPAD_DOT = 158, | 81 AKEYCODE_NUMPAD_DOT = 158, |
| 82 AKEYCODE_VOLUME_MUTE = 164, | 82 AKEYCODE_VOLUME_MUTE = 164, |
| 83 AKEYCODE_CHANNEL_UP = 166, | 83 AKEYCODE_CHANNEL_UP = 166, |
| 84 AKEYCODE_CHANNEL_DOWN = 167, | 84 AKEYCODE_CHANNEL_DOWN = 167, |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 int windowsKeyCodeForKeyEvent(unsigned int keyCode) | 87 int windowsKeyCodeForKeyEvent(unsigned keyCode) |
| 88 { | 88 { |
| 89 // Does not provide all key codes, and does not handle all keys. | 89 // Does not provide all key codes, and does not handle all keys. |
| 90 switch (keyCode) { | 90 switch (keyCode) { |
| 91 case AKEYCODE_DEL: | 91 case AKEYCODE_DEL: |
| 92 return VKEY_BACK; | 92 return VKEY_BACK; |
| 93 case AKEYCODE_TAB: | 93 case AKEYCODE_TAB: |
| 94 return VKEY_TAB; | 94 return VKEY_TAB; |
| 95 case AKEYCODE_CLEAR: | 95 case AKEYCODE_CLEAR: |
| 96 return VKEY_CLEAR; | 96 return VKEY_CLEAR; |
| 97 case AKEYCODE_DPAD_CENTER: | 97 case AKEYCODE_DPAD_CENTER: |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 case AKEYCODE_CHANNEL_UP: | 322 case AKEYCODE_CHANNEL_UP: |
| 323 return VKEY_PRIOR; | 323 return VKEY_PRIOR; |
| 324 case AKEYCODE_CHANNEL_DOWN: | 324 case AKEYCODE_CHANNEL_DOWN: |
| 325 return VKEY_NEXT; | 325 return VKEY_NEXT; |
| 326 default: | 326 default: |
| 327 return 0; | 327 return 0; |
| 328 } | 328 } |
| 329 } | 329 } |
| 330 | 330 |
| 331 } // namespace WebCore | 331 } // namespace WebCore |
| OLD | NEW |