| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 PlatformGestureEvent() | 47 PlatformGestureEvent() |
| 48 : PlatformEvent(PlatformEvent::GestureScrollBegin), | 48 : PlatformEvent(PlatformEvent::GestureScrollBegin), |
| 49 m_source(PlatformGestureSourceUninitialized) { | 49 m_source(PlatformGestureSourceUninitialized) { |
| 50 memset(&m_data, 0, sizeof(m_data)); | 50 memset(&m_data, 0, sizeof(m_data)); |
| 51 } | 51 } |
| 52 | 52 |
| 53 PlatformGestureEvent(EventType type, | 53 PlatformGestureEvent(EventType type, |
| 54 const IntPoint& position, | 54 const IntPoint& position, |
| 55 const IntPoint& globalPosition, | 55 const IntPoint& globalPosition, |
| 56 const IntSize& area, | 56 const IntSize& area, |
| 57 double timestamp, | 57 TimeTicks timestamp, |
| 58 PlatformEvent::Modifiers modifiers, | 58 PlatformEvent::Modifiers modifiers, |
| 59 PlatformGestureSource source) | 59 PlatformGestureSource source) |
| 60 : PlatformEvent(type, modifiers, timestamp), | 60 : PlatformEvent(type, modifiers, timestamp), |
| 61 m_position(position), | 61 m_position(position), |
| 62 m_globalPosition(globalPosition), | 62 m_globalPosition(globalPosition), |
| 63 m_area(area), | 63 m_area(area), |
| 64 m_source(source) { | 64 m_source(source) { |
| 65 memset(&m_data, 0, sizeof(m_data)); | 65 memset(&m_data, 0, sizeof(m_data)); |
| 66 } | 66 } |
| 67 | 67 |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 float m_scale; | 246 float m_scale; |
| 247 } m_pinchUpdate; | 247 } m_pinchUpdate; |
| 248 } m_data; | 248 } m_data; |
| 249 | 249 |
| 250 uint32_t m_uniqueTouchEventId; | 250 uint32_t m_uniqueTouchEventId; |
| 251 }; | 251 }; |
| 252 | 252 |
| 253 } // namespace blink | 253 } // namespace blink |
| 254 | 254 |
| 255 #endif // PlatformGestureEvent_h | 255 #endif // PlatformGestureEvent_h |
| OLD | NEW |