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) | |
67 // PlatformTouchEvent | 66 // PlatformTouchEvent |
68 TouchStart, | 67 TouchStart, |
69 TouchMove, | 68 TouchMove, |
70 TouchEnd, | 69 TouchEnd, |
71 TouchCancel, | 70 TouchCancel, |
72 #endif | |
73 }; | 71 }; |
74 | 72 |
75 enum Modifiers { | 73 enum Modifiers { |
76 AltKey = 1 << 0, | 74 AltKey = 1 << 0, |
77 CtrlKey = 1 << 1, | 75 CtrlKey = 1 << 1, |
78 MetaKey = 1 << 2, | 76 MetaKey = 1 << 2, |
79 ShiftKey = 1 << 3, | 77 ShiftKey = 1 << 3, |
80 }; | 78 }; |
81 | 79 |
82 Type type() const { return static_cast<Type>(m_type); } | 80 Type type() const { return static_cast<Type>(m_type); } |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 } | 132 } |
135 | 133 |
136 unsigned m_type; | 134 unsigned m_type; |
137 unsigned m_modifiers; | 135 unsigned m_modifiers; |
138 double m_timestamp; | 136 double m_timestamp; |
139 }; | 137 }; |
140 | 138 |
141 } // namespace WebCore | 139 } // namespace WebCore |
142 | 140 |
143 #endif // PlatformEvent_h | 141 #endif // PlatformEvent_h |
OLD | NEW |