diff options
Diffstat (limited to 'WebCore/platform/mac/PlatformMouseEventMac.mm')
-rw-r--r-- | WebCore/platform/mac/PlatformMouseEventMac.mm | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/WebCore/platform/mac/PlatformMouseEventMac.mm b/WebCore/platform/mac/PlatformMouseEventMac.mm index 74f694e..5b84b4f 100644 --- a/WebCore/platform/mac/PlatformMouseEventMac.mm +++ b/WebCore/platform/mac/PlatformMouseEventMac.mm @@ -158,4 +158,22 @@ PlatformMouseEvent::PlatformMouseEvent(NSEvent* event, NSView *windowView) { } +PlatformMouseEvent::PlatformMouseEvent(int x, int y, int globalX, int globalY, MouseButton button, MouseEventType eventType, + int clickCount, bool shiftKey, bool ctrlKey, bool altKey, bool metaKey, double timestamp, + unsigned modifierFlags, int eventNumber) + : m_position(IntPoint(x, y)) + , m_globalPosition(IntPoint(globalX, globalY)) + , m_button(button) + , m_eventType(eventType) + , m_clickCount(clickCount) + , m_shiftKey(shiftKey) + , m_ctrlKey(ctrlKey) + , m_altKey(altKey) + , m_metaKey(metaKey) + , m_timestamp(timestamp) + , m_modifierFlags(modifierFlags) + , m_eventNumber(eventNumber) +{ +} + } |