| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006-2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2006-2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 modifiers |= WebInputEvent::RightButtonDown; | 115 modifiers |= WebInputEvent::RightButtonDown; |
| 116 if (state & GDK_LOCK_MASK) | 116 if (state & GDK_LOCK_MASK) |
| 117 modifiers |= WebInputEvent::CapsLockOn; | 117 modifiers |= WebInputEvent::CapsLockOn; |
| 118 if (state & GDK_MOD2_MASK) | 118 if (state & GDK_MOD2_MASK) |
| 119 modifiers |= WebInputEvent::NumLockOn; | 119 modifiers |= WebInputEvent::NumLockOn; |
| 120 return modifiers; | 120 return modifiers; |
| 121 } | 121 } |
| 122 | 122 |
| 123 static int gdkEventToWindowsKeyCode(const GdkEventKey* event) | 123 static int gdkEventToWindowsKeyCode(const GdkEventKey* event) |
| 124 { | 124 { |
| 125 static const unsigned int hardwareCodeToGDKKeyval[] = { | 125 static const unsigned hardwareCodeToGDKKeyval[] = { |
| 126 0, // 0x00: | 126 0, // 0x00: |
| 127 0, // 0x01: | 127 0, // 0x01: |
| 128 0, // 0x02: | 128 0, // 0x02: |
| 129 0, // 0x03: | 129 0, // 0x03: |
| 130 0, // 0x04: | 130 0, // 0x04: |
| 131 0, // 0x05: | 131 0, // 0x05: |
| 132 0, // 0x06: | 132 0, // 0x06: |
| 133 0, // 0x07: | 133 0, // 0x07: |
| 134 0, // 0x08: | 134 0, // 0x08: |
| 135 0, // 0x09: GDK_Escape | 135 0, // 0x09: GDK_Escape |
| (...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 case GDK_SCROLL_RIGHT: | 620 case GDK_SCROLL_RIGHT: |
| 621 result.deltaX = -scrollbarPixelsPerTick; | 621 result.deltaX = -scrollbarPixelsPerTick; |
| 622 result.wheelTicksX = -1; | 622 result.wheelTicksX = -1; |
| 623 break; | 623 break; |
| 624 } | 624 } |
| 625 | 625 |
| 626 return result; | 626 return result; |
| 627 } | 627 } |
| 628 | 628 |
| 629 } // namespace blink | 629 } // namespace blink |
| OLD | NEW |