| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 GestureTapDown, | 58 GestureTapDown, |
| 59 GestureShowPress, | 59 GestureShowPress, |
| 60 GestureTapDownCancel, | 60 GestureTapDownCancel, |
| 61 GestureTwoFingerTap, | 61 GestureTwoFingerTap, |
| 62 GestureLongPress, | 62 GestureLongPress, |
| 63 GestureLongTap, | 63 GestureLongTap, |
| 64 GesturePinchBegin, | 64 GesturePinchBegin, |
| 65 GesturePinchEnd, | 65 GesturePinchEnd, |
| 66 GesturePinchUpdate, | 66 GesturePinchUpdate, |
| 67 GestureFlingStart, | 67 GestureFlingStart, |
| 68 | |
| 69 // PlatformTouchEvent | |
| 70 TouchStart, | |
| 71 TouchMove, | |
| 72 TouchEnd, | |
| 73 TouchCancel, | |
| 74 }; | 68 }; |
| 75 | 69 |
| 76 enum Modifiers { | 70 enum Modifiers { |
| 77 AltKey = 1 << 0, | 71 AltKey = 1 << 0, |
| 78 CtrlKey = 1 << 1, | 72 CtrlKey = 1 << 1, |
| 79 MetaKey = 1 << 2, | 73 MetaKey = 1 << 2, |
| 80 ShiftKey = 1 << 3, | 74 ShiftKey = 1 << 3, |
| 81 }; | 75 }; |
| 82 | 76 |
| 83 Type type() const { return static_cast<Type>(m_type); } | 77 Type type() const { return static_cast<Type>(m_type); } |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 } | 129 } |
| 136 | 130 |
| 137 unsigned m_type; | 131 unsigned m_type; |
| 138 unsigned m_modifiers; | 132 unsigned m_modifiers; |
| 139 double m_timestamp; | 133 double m_timestamp; |
| 140 }; | 134 }; |
| 141 | 135 |
| 142 } // namespace blink | 136 } // namespace blink |
| 143 | 137 |
| 144 #endif // SKY_ENGINE_PLATFORM_PLATFORMEVENT_H_ | 138 #endif // SKY_ENGINE_PLATFORM_PLATFORMEVENT_H_ |
| OLD | NEW |