| 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 15 matching lines...) Expand all Loading... |
| 26 #ifndef PlatformGestureEvent_h | 26 #ifndef PlatformGestureEvent_h |
| 27 #define PlatformGestureEvent_h | 27 #define PlatformGestureEvent_h |
| 28 | 28 |
| 29 #include "platform/PlatformEvent.h" | 29 #include "platform/PlatformEvent.h" |
| 30 #include "platform/geometry/FloatPoint.h" | 30 #include "platform/geometry/FloatPoint.h" |
| 31 #include "platform/geometry/IntPoint.h" | 31 #include "platform/geometry/IntPoint.h" |
| 32 #include "platform/geometry/IntSize.h" | 32 #include "platform/geometry/IntSize.h" |
| 33 #include "wtf/Assertions.h" | 33 #include "wtf/Assertions.h" |
| 34 #include <string.h> | 34 #include <string.h> |
| 35 | 35 |
| 36 namespace WebCore { | 36 namespace blink { |
| 37 | 37 |
| 38 class PlatformGestureEvent : public PlatformEvent { | 38 class PlatformGestureEvent : public PlatformEvent { |
| 39 public: | 39 public: |
| 40 PlatformGestureEvent() | 40 PlatformGestureEvent() |
| 41 : PlatformEvent(PlatformEvent::GestureScrollBegin) | 41 : PlatformEvent(PlatformEvent::GestureScrollBegin) |
| 42 { | 42 { |
| 43 memset(&m_data, 0, sizeof(m_data)); | 43 memset(&m_data, 0, sizeof(m_data)); |
| 44 } | 44 } |
| 45 | 45 |
| 46 PlatformGestureEvent(Type type, const IntPoint& position, const IntPoint& gl
obalPosition, const IntSize& area, double timestamp, bool shiftKey, bool ctrlKey
, bool altKey, bool metaKey, float deltaX, float deltaY, float velocityX, float
velocityY) | 46 PlatformGestureEvent(Type type, const IntPoint& position, const IntPoint& gl
obalPosition, const IntSize& area, double timestamp, bool shiftKey, bool ctrlKey
, bool altKey, bool metaKey, float deltaX, float deltaY, float velocityX, float
velocityY) |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 float m_velocityX; | 159 float m_velocityX; |
| 160 float m_velocityY; | 160 float m_velocityY; |
| 161 } m_scrollUpdate; | 161 } m_scrollUpdate; |
| 162 | 162 |
| 163 struct { | 163 struct { |
| 164 float m_scale; | 164 float m_scale; |
| 165 } m_pinchUpdate; | 165 } m_pinchUpdate; |
| 166 } m_data; | 166 } m_data; |
| 167 }; | 167 }; |
| 168 | 168 |
| 169 } // namespace WebCore | 169 } // namespace blink |
| 170 | 170 |
| 171 #endif // PlatformGestureEvent_h | 171 #endif // PlatformGestureEvent_h |
| OLD | NEW |