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 25 matching lines...) Expand all Loading... |
36 public: | 36 public: |
37 enum EventType { | 37 enum EventType { |
38 NoType = 0, | 38 NoType = 0, |
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 | |
47 Wheel, | |
48 | |
49 // PlatformTouchEvent | 46 // PlatformTouchEvent |
50 TouchStart, | 47 TouchStart, |
51 TouchMove, | 48 TouchMove, |
52 TouchEnd, | 49 TouchEnd, |
53 TouchCancel, | 50 TouchCancel, |
54 TouchScrollStarted, | 51 TouchScrollStarted, |
55 }; | 52 }; |
56 | 53 |
57 // These values are direct mappings of the values in WebInputEvent so the | 54 // These values are direct mappings of the values in WebInputEvent so the |
58 // values can be cast between the enumerations. static_asserts checking this | 55 // values can be cast between the enumerations. static_asserts checking this |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 ~PlatformEvent() {} | 134 ~PlatformEvent() {} |
138 | 135 |
139 unsigned m_type; | 136 unsigned m_type; |
140 unsigned m_modifiers; | 137 unsigned m_modifiers; |
141 TimeTicks m_timestamp; | 138 TimeTicks m_timestamp; |
142 }; | 139 }; |
143 | 140 |
144 } // namespace blink | 141 } // namespace blink |
145 | 142 |
146 #endif // PlatformEvent_h | 143 #endif // PlatformEvent_h |
OLD | NEW |