| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 GesturePinchBegin, | 67 GesturePinchBegin, |
| 68 GesturePinchEnd, | 68 GesturePinchEnd, |
| 69 GesturePinchUpdate, | 69 GesturePinchUpdate, |
| 70 GestureFlingStart, | 70 GestureFlingStart, |
| 71 | 71 |
| 72 // PlatformTouchEvent | 72 // PlatformTouchEvent |
| 73 TouchStart, | 73 TouchStart, |
| 74 TouchMove, | 74 TouchMove, |
| 75 TouchEnd, | 75 TouchEnd, |
| 76 TouchCancel, | 76 TouchCancel, |
| 77 TouchScrollStarted, |
| 77 }; | 78 }; |
| 78 | 79 |
| 79 // These values are direct mappings of the values in WebInputEvent so the va
lues can be cast between the | 80 // These values are direct mappings of the values in WebInputEvent so the va
lues can be cast between the |
| 80 // enumerations. static_asserts checking this are in web/WebInputEventConver
sion.cpp. | 81 // enumerations. static_asserts checking this are in web/WebInputEventConver
sion.cpp. |
| 81 enum Modifiers { | 82 enum Modifiers { |
| 82 NoModifiers = 0, | 83 NoModifiers = 0, |
| 83 ShiftKey = 1 << 0, | 84 ShiftKey = 1 << 0, |
| 84 CtrlKey = 1 << 1, | 85 CtrlKey = 1 << 1, |
| 85 AltKey = 1 << 2, | 86 AltKey = 1 << 2, |
| 86 MetaKey = 1 << 3, | 87 MetaKey = 1 << 3, |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 } | 162 } |
| 162 | 163 |
| 163 unsigned m_type; | 164 unsigned m_type; |
| 164 unsigned m_modifiers; | 165 unsigned m_modifiers; |
| 165 double m_timestamp; | 166 double m_timestamp; |
| 166 }; | 167 }; |
| 167 | 168 |
| 168 } // namespace blink | 169 } // namespace blink |
| 169 | 170 |
| 170 #endif // PlatformEvent_h | 171 #endif // PlatformEvent_h |
| OLD | NEW |