GestureEvent::GestureEvent(const AtomicString& type, PassRefPtrWillBeRawPtr<AbstractView> view, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, float deltaX, float deltaY, double uiTimestamp) : MouseRelatedEvent(type, true, true, view, 0, IntPoint(screenX, screenY), IntPoint(clientX, clientY), IntPoint(0, 0), ctrlKey, altKey, shiftKey, metaKey) , m_deltaX(deltaX) , m_deltaY(deltaY) { setUICreateTime(uiTimestamp); }
KeyboardEvent::KeyboardEvent(const PlatformKeyboardEvent& key, AbstractView* view) : UIEventWithKeyState(eventTypeForKeyboardEventType(key.type()), true, true, view, 0, key.ctrlKey(), key.altKey(), key.shiftKey(), key.metaKey(), InputDevice::doesntFireTouchEventsInputDevice()) , m_keyEvent(adoptPtr(new PlatformKeyboardEvent(key))) , m_keyIdentifier(key.keyIdentifier()) , m_code(key.code()) , m_key(key.key()) , m_location(keyLocationCode(key)) , m_isAutoRepeat(key.isAutoRepeat()) , m_bbIsNumLock(key.bbIsNumLock()) { setUICreateTime(key.timestamp()); }
TouchEvent::TouchEvent(TouchList* touches, TouchList* targetTouches, TouchList* changedTouches, const AtomicString& type, PassRefPtrWillBeRawPtr<AbstractView> view, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool cancelable, bool causesScrollingIfUncanceled, double uiCreateTime) : UIEventWithKeyState(type, true, cancelable, view, 0, ctrlKey, altKey, shiftKey, metaKey) , m_touches(touches) , m_targetTouches(targetTouches) , m_changedTouches(changedTouches) , m_causesScrollingIfUncanceled(causesScrollingIfUncanceled) { setUICreateTime(uiCreateTime); }
MouseEvent::MouseEvent(const AtomicString& eventType, bool canBubble, bool cancelable, PassRefPtrWillBeRawPtr<AbstractView> view, int detail, int screenX, int screenY, int windowX, int windowY, int movementX, int movementY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, unsigned short button, unsigned short buttons, PassRefPtrWillBeRawPtr<EventTarget> relatedTarget, PassRefPtrWillBeRawPtr<DataTransfer> dataTransfer, bool isSimulated, PlatformMouseEvent::SyntheticEventType syntheticEventType, double uiCreateTime) : MouseRelatedEvent(eventType, canBubble, cancelable, view, detail, IntPoint(screenX, screenY), IntPoint(windowX, windowY), IntPoint(movementX, movementY), ctrlKey, altKey, shiftKey, metaKey, isSimulated) , m_button(button == (unsigned short)-1 ? 0 : button) , m_buttons(buttons) , m_buttonDown(button != (unsigned short)-1) , m_relatedTarget(relatedTarget) , m_dataTransfer(dataTransfer) , m_syntheticEventType(syntheticEventType) { setUICreateTime(uiCreateTime); }