OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 GestureTap, | 56 GestureTap, |
57 GestureTapDown, | 57 GestureTapDown, |
58 GestureTapDownCancel, | 58 GestureTapDownCancel, |
59 GestureTwoFingerTap, | 59 GestureTwoFingerTap, |
60 GestureLongPress, | 60 GestureLongPress, |
61 GestureLongTap, | 61 GestureLongTap, |
62 GesturePinchBegin, | 62 GesturePinchBegin, |
63 GesturePinchEnd, | 63 GesturePinchEnd, |
64 GesturePinchUpdate, | 64 GesturePinchUpdate, |
65 | 65 |
| 66 #if ENABLE(TOUCH_EVENTS) |
66 // PlatformTouchEvent | 67 // PlatformTouchEvent |
67 TouchStart, | 68 TouchStart, |
68 TouchMove, | 69 TouchMove, |
69 TouchEnd, | 70 TouchEnd, |
70 TouchCancel, | 71 TouchCancel, |
| 72 #endif |
71 }; | 73 }; |
72 | 74 |
73 enum Modifiers { | 75 enum Modifiers { |
74 AltKey = 1 << 0, | 76 AltKey = 1 << 0, |
75 CtrlKey = 1 << 1, | 77 CtrlKey = 1 << 1, |
76 MetaKey = 1 << 2, | 78 MetaKey = 1 << 2, |
77 ShiftKey = 1 << 3, | 79 ShiftKey = 1 << 3, |
78 }; | 80 }; |
79 | 81 |
80 Type type() const { return static_cast<Type>(m_type); } | 82 Type type() const { return static_cast<Type>(m_type); } |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 } | 134 } |
133 | 135 |
134 unsigned m_type; | 136 unsigned m_type; |
135 unsigned m_modifiers; | 137 unsigned m_modifiers; |
136 double m_timestamp; | 138 double m_timestamp; |
137 }; | 139 }; |
138 | 140 |
139 } // namespace WebCore | 141 } // namespace WebCore |
140 | 142 |
141 #endif // PlatformEvent_h | 143 #endif // PlatformEvent_h |
OLD | NEW |