| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2006-2009 Google Inc. | 3 * Copyright (C) 2006-2009 Google Inc. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 */ | 25 */ |
| 26 | 26 |
| 27 #include "config.h" | 27 #include "config.h" |
| 28 #include "WebInputEventFactory.h" | 28 #include "WebInputEventFactory.h" |
| 29 | 29 |
| 30 #include <ApplicationServices/ApplicationServices.h> | 30 #include <ApplicationServices/ApplicationServices.h> |
| 31 #import <AvailabilityMacros.h> | 31 #import <AvailabilityMacros.h> |
| 32 #import <Cocoa/Cocoa.h> | 32 #import <Cocoa/Cocoa.h> |
| 33 | 33 |
| 34 #include "WebInputEvent.h" | 34 #include "WebInputEvent.h" |
| 35 #include "core/platform/WindowsKeyboardCodes.h" | 35 #include "platform/WindowsKeyboardCodes.h" |
| 36 #include "wtf/ASCIICType.h" | 36 #include "wtf/ASCIICType.h" |
| 37 | 37 |
| 38 #if __MAC_OS_X_VERSION_MAX_ALLOWED == 1060 | 38 #if __MAC_OS_X_VERSION_MAX_ALLOWED == 1060 |
| 39 | 39 |
| 40 // Additional Lion APIs. | 40 // Additional Lion APIs. |
| 41 enum { | 41 enum { |
| 42 NSEventPhaseNone = 0, | 42 NSEventPhaseNone = 0, |
| 43 NSEventPhaseBegan = 0x1 << 0, | 43 NSEventPhaseBegan = 0x1 << 0, |
| 44 NSEventPhaseStationary = 0x1 << 1, | 44 NSEventPhaseStationary = 0x1 << 1, |
| 45 NSEventPhaseChanged = 0x1 << 2, | 45 NSEventPhaseChanged = 0x1 << 2, |
| (...skipping 1093 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1139 result.globalY = temp.globalY; | 1139 result.globalY = temp.globalY; |
| 1140 | 1140 |
| 1141 result.type = gestureEventTypeForEvent(event); | 1141 result.type = gestureEventTypeForEvent(event); |
| 1142 result.modifiers = modifiersFromEvent(event); | 1142 result.modifiers = modifiersFromEvent(event); |
| 1143 result.timeStampSeconds = [event timestamp]; | 1143 result.timeStampSeconds = [event timestamp]; |
| 1144 | 1144 |
| 1145 return result; | 1145 return result; |
| 1146 } | 1146 } |
| 1147 | 1147 |
| 1148 } // namespace WebKit | 1148 } // namespace WebKit |
| OLD | NEW |