| 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 29 matching lines...) Expand all Loading... |
| 40 Char, | 40 Char, |
| 41 | 41 |
| 42 // PlatformMouseEvent | 42 // PlatformMouseEvent |
| 43 MouseMoved, | 43 MouseMoved, |
| 44 MousePressed, | 44 MousePressed, |
| 45 MouseReleased, | 45 MouseReleased, |
| 46 MouseScroll, | 46 MouseScroll, |
| 47 | 47 |
| 48 // PlatformWheelEvent | 48 // PlatformWheelEvent |
| 49 Wheel, | 49 Wheel, |
| 50 | |
| 51 // PlatformGestureEvent | |
| 52 GestureScrollBegin, | |
| 53 GestureScrollEnd, | |
| 54 GestureScrollUpdate, | |
| 55 GestureScrollUpdateWithoutPropagation, | |
| 56 GestureTap, | |
| 57 GestureTapUnconfirmed, | |
| 58 GestureTapDown, | |
| 59 GestureShowPress, | |
| 60 GestureTapDownCancel, | |
| 61 GestureTwoFingerTap, | |
| 62 GestureLongPress, | |
| 63 GestureLongTap, | |
| 64 GesturePinchBegin, | |
| 65 GesturePinchEnd, | |
| 66 GesturePinchUpdate, | |
| 67 GestureFlingStart, | |
| 68 }; | 50 }; |
| 69 | 51 |
| 70 enum Modifiers { | 52 enum Modifiers { |
| 71 AltKey = 1 << 0, | 53 AltKey = 1 << 0, |
| 72 CtrlKey = 1 << 1, | 54 CtrlKey = 1 << 1, |
| 73 MetaKey = 1 << 2, | 55 MetaKey = 1 << 2, |
| 74 ShiftKey = 1 << 3, | 56 ShiftKey = 1 << 3, |
| 75 }; | 57 }; |
| 76 | 58 |
| 77 Type type() const { return static_cast<Type>(m_type); } | 59 Type type() const { return static_cast<Type>(m_type); } |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 } | 111 } |
| 130 | 112 |
| 131 unsigned m_type; | 113 unsigned m_type; |
| 132 unsigned m_modifiers; | 114 unsigned m_modifiers; |
| 133 double m_timestamp; | 115 double m_timestamp; |
| 134 }; | 116 }; |
| 135 | 117 |
| 136 } // namespace blink | 118 } // namespace blink |
| 137 | 119 |
| 138 #endif // SKY_ENGINE_PLATFORM_PLATFORMEVENT_H_ | 120 #endif // SKY_ENGINE_PLATFORM_PLATFORMEVENT_H_ |
| OLD | NEW |