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 28 matching lines...) Expand all Loading... |
39 | 39 |
40 // PlatformMouseEvent | 40 // PlatformMouseEvent |
41 MouseMoved, | 41 MouseMoved, |
42 MousePressed, | 42 MousePressed, |
43 MouseReleased, | 43 MouseReleased, |
44 MouseScroll, | 44 MouseScroll, |
45 | 45 |
46 // PlatformWheelEvent | 46 // PlatformWheelEvent |
47 Wheel, | 47 Wheel, |
48 | 48 |
49 // PlatformGestureEvent | |
50 GestureScrollBegin, | |
51 GestureScrollEnd, | |
52 GestureScrollUpdate, | |
53 GestureTap, | |
54 GestureTapUnconfirmed, | |
55 GestureTapDown, | |
56 GestureShowPress, | |
57 GestureTapDownCancel, | |
58 GestureTwoFingerTap, | |
59 GestureLongPress, | |
60 GestureLongTap, | |
61 GesturePinchBegin, | |
62 GesturePinchEnd, | |
63 GesturePinchUpdate, | |
64 GestureFlingStart, | |
65 | |
66 // PlatformTouchEvent | 49 // PlatformTouchEvent |
67 TouchStart, | 50 TouchStart, |
68 TouchMove, | 51 TouchMove, |
69 TouchEnd, | 52 TouchEnd, |
70 TouchCancel, | 53 TouchCancel, |
71 TouchScrollStarted, | 54 TouchScrollStarted, |
72 }; | 55 }; |
73 | 56 |
74 // These values are direct mappings of the values in WebInputEvent so the | 57 // These values are direct mappings of the values in WebInputEvent so the |
75 // values can be cast between the enumerations. static_asserts checking this | 58 // values can be cast between the enumerations. static_asserts checking this |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 ~PlatformEvent() {} | 137 ~PlatformEvent() {} |
155 | 138 |
156 unsigned m_type; | 139 unsigned m_type; |
157 unsigned m_modifiers; | 140 unsigned m_modifiers; |
158 TimeTicks m_timestamp; | 141 TimeTicks m_timestamp; |
159 }; | 142 }; |
160 | 143 |
161 } // namespace blink | 144 } // namespace blink |
162 | 145 |
163 #endif // PlatformEvent_h | 146 #endif // PlatformEvent_h |
OLD | NEW |