| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 | 44 |
| 45 class PlatformGestureEvent : public PlatformEvent { | 45 class PlatformGestureEvent : public PlatformEvent { |
| 46 public: | 46 public: |
| 47 PlatformGestureEvent() | 47 PlatformGestureEvent() |
| 48 : PlatformEvent(PlatformEvent::GestureScrollBegin) | 48 : PlatformEvent(PlatformEvent::GestureScrollBegin) |
| 49 , m_source(PlatformGestureSourceUninitialized) | 49 , m_source(PlatformGestureSourceUninitialized) |
| 50 { | 50 { |
| 51 memset(&m_data, 0, sizeof(m_data)); | 51 memset(&m_data, 0, sizeof(m_data)); |
| 52 } | 52 } |
| 53 | 53 |
| 54 PlatformGestureEvent(Type type, const IntPoint& position, | 54 PlatformGestureEvent(EventType type, const IntPoint& position, |
| 55 const IntPoint& globalPosition, const IntSize& area, double timestamp, | 55 const IntPoint& globalPosition, const IntSize& area, double timestamp, |
| 56 PlatformEvent::Modifiers modifiers, PlatformGestureSource source) | 56 PlatformEvent::Modifiers modifiers, PlatformGestureSource source) |
| 57 : PlatformEvent(type, modifiers, timestamp) | 57 : PlatformEvent(type, modifiers, timestamp) |
| 58 , m_position(position) | 58 , m_position(position) |
| 59 , m_globalPosition(globalPosition) | 59 , m_globalPosition(globalPosition) |
| 60 , m_area(area) | 60 , m_area(area) |
| 61 , m_source(source) | 61 , m_source(source) |
| 62 { | 62 { |
| 63 memset(&m_data, 0, sizeof(m_data)); | 63 memset(&m_data, 0, sizeof(m_data)); |
| 64 } | 64 } |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 | 226 |
| 227 struct { | 227 struct { |
| 228 float m_scale; | 228 float m_scale; |
| 229 } m_pinchUpdate; | 229 } m_pinchUpdate; |
| 230 } m_data; | 230 } m_data; |
| 231 }; | 231 }; |
| 232 | 232 |
| 233 } // namespace blink | 233 } // namespace blink |
| 234 | 234 |
| 235 #endif // PlatformGestureEvent_h | 235 #endif // PlatformGestureEvent_h |
| OLD | NEW |