Lines Matching refs:mouseEvent
55 #include "MouseEvent.h"
1150 bool EventHandler::handleMousePressEvent(const PlatformMouseEvent& mouseEvent)
1156 m_currentMousePosition = mouseEvent.pos();
1157 m_mouseDownTimestamp = mouseEvent.timestamp();
1164 m_mouseDownPos = view->windowToContents(mouseEvent.pos());
1174 IntPoint documentPoint = documentPointForWindowPoint(m_frame, mouseEvent.pos());
1175 MouseEventWithHitTestResults mev = m_frame->document()->prepareMouseEvent(request, documentPoint, mouseEvent);
1215 m_clickCount = mouseEvent.clickCount();
1220 IntPoint p = view->windowToContents(mouseEvent.pos());
1230 bool swallowEvent = dispatchMouseEvent(eventNames().mousedownEvent, mev.targetNode(), true, m_clickCount, mouseEvent, true);
1238 mev = m_frame->document()->prepareMouseEvent(request, documentPoint, mouseEvent);
1258 mev = m_frame->document()->prepareMouseEvent(request, documentPoint, mouseEvent);
1262 Scrollbar* scrollbar = view ? view->scrollbarAtPoint(mouseEvent.pos()) : 0;
1278 bool EventHandler::handleMouseDoubleClickEvent(const PlatformMouseEvent& mouseEvent)
1284 m_currentMousePosition = mouseEvent.pos();
1287 MouseEventWithHitTestResults mev = prepareMouseEvent(request, mouseEvent);
1294 m_clickCount = mouseEvent.clickCount();
1295 bool swallowMouseUpEvent = dispatchMouseEvent(eventNames().mouseupEvent, mev.targetNode(), true, m_clickCount, mouseEvent, false);
1299 if (mouseEvent.button() != RightButton && mev.targetNode() == m_clickNode)
1300 swallowClickEvent = dispatchMouseEvent(eventNames().clickEvent, mev.targetNode(), true, m_clickCount, mouseEvent, true);
1329 bool EventHandler::handleMouseMoveEvent(const PlatformMouseEvent& mouseEvent, HitTestResult* hoveredNode)
1340 m_currentMousePosition = mouseEvent.pos();
1353 return dispatchMouseEvent(eventNames().mousemoveEvent, m_frameSetBeingResized.get(), false, 0, mouseEvent, false);
1357 return m_lastScrollbarUnderMouse->mouseMoved(mouseEvent);
1369 MouseEventWithHitTestResults mev = prepareMouseEvent(request, mouseEvent);
1376 m_resizeLayer->resize(mouseEvent, m_offsetFromResizeCorner);
1379 mouseEvent.pos());
1396 updateMouseEventTargetNode(mev.targetNode(), mouseEvent, true);
1404 scrollbar->mouseMoved(mouseEvent); // Handle hover effects on platforms that support visual feedback on scrollbar hovering.
1418 swallowEvent = dispatchMouseEvent(eventNames().mousemoveEvent, mev.targetNode(), false, 0, mouseEvent, true);
1433 bool EventHandler::handleMouseReleaseEvent(const PlatformMouseEvent& mouseEvent)
1438 if (mouseEvent.button() == MiddleButton)
1445 m_currentMousePosition = mouseEvent.pos();
1456 return dispatchMouseEvent(eventNames().mouseupEvent, m_frameSetBeingResized.get(), true, m_clickCount, mouseEvent, false);
1464 MouseEventWithHitTestResults mev = prepareMouseEvent(request, mouseEvent);
1471 bool swallowMouseUpEvent = dispatchMouseEvent(eventNames().mouseupEvent, mev.targetNode(), true, m_clickCount, mouseEvent, false);
1475 if (m_clickCount > 0 && mouseEvent.button() != RightButton && mev.targetNode() == m_clickNode)
1476 swallowClickEvent = dispatchMouseEvent(eventNames().clickEvent, mev.targetNode(), true, m_clickCount, mouseEvent, true);
1504 RefPtr<MouseEvent> me = MouseEvent::create(eventType,
1662 void EventHandler::updateMouseEventTargetNode(Node* targetNode, const PlatformMouseEvent& mouseEvent, bool fireMouseOverOut)
1725 m_lastNodeUnderMouse->dispatchMouseEvent(mouseEvent, eventNames().mouseoutEvent, 0, m_nodeUnderMouse.get());
1728 m_nodeUnderMouse->dispatchMouseEvent(mouseEvent, eventNames().mouseoverEvent, 0, m_lastNodeUnderMouse.get());
1737 bool EventHandler::dispatchMouseEvent(const AtomicString& eventType, Node* targetNode, bool /*cancelable*/, int clickCount, const PlatformMouseEvent& mouseEvent, bool setUnder)
1742 updateMouseEventTargetNode(targetNode, mouseEvent, setUnder);
1747 swallowEvent = m_nodeUnderMouse->dispatchMouseEvent(mouseEvent, eventType, clickCount);