Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv ed. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv ed. |
| 3 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 3 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
| 4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) | 4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 1704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1715 m_lastScrollbarUnderMouse = nullptr; | 1715 m_lastScrollbarUnderMouse = nullptr; |
| 1716 } | 1716 } |
| 1717 | 1717 |
| 1718 return lastNodeUnderMouse; | 1718 return lastNodeUnderMouse; |
| 1719 } | 1719 } |
| 1720 | 1720 |
| 1721 void EventHandler::updateMouseEventTargetNodeAndSendEvents(Node* targetNode, | 1721 void EventHandler::updateMouseEventTargetNodeAndSendEvents(Node* targetNode, |
| 1722 const PlatformMouseEvent& mouseEvent, bool isFrameBoundaryTransition) | 1722 const PlatformMouseEvent& mouseEvent, bool isFrameBoundaryTransition) |
| 1723 { | 1723 { |
| 1724 Node* lastNodeUnderMouse = updateMouseEventTargetNode(targetNode, mouseEvent ); | 1724 Node* lastNodeUnderMouse = updateMouseEventTargetNode(targetNode, mouseEvent ); |
| 1725 m_pointerEventManager.sendMouseAndPossiblyPointerNodeTransitionEvents( | 1725 m_pointerEventManager.sendMouseAndPossiblyPointerBoundaryEvents( |
|
mustaq
2016/05/11 20:42:57
Why is this? "Transition events" more accurately r
Navid Zolghadr
2016/05/11 20:50:20
I was trying to follow Rick's recent email to the
mustaq
2016/05/12 14:03:09
Missed the github comment, sorry. Your renaming lo
| |
| 1726 lastNodeUnderMouse, m_nodeUnderMouse, mouseEvent, | 1726 lastNodeUnderMouse, m_nodeUnderMouse, mouseEvent, |
| 1727 m_frame->document()->domWindow(), isFrameBoundaryTransition); | 1727 m_frame->document()->domWindow(), isFrameBoundaryTransition); |
| 1728 } | 1728 } |
| 1729 | 1729 |
| 1730 WebInputEventResult EventHandler::dispatchMouseEvent(const AtomicString& eventTy pe, Node* targetNode, int clickCount, const PlatformMouseEvent& mouseEvent) | 1730 WebInputEventResult EventHandler::dispatchMouseEvent(const AtomicString& eventTy pe, Node* targetNode, int clickCount, const PlatformMouseEvent& mouseEvent) |
| 1731 { | 1731 { |
| 1732 updateMouseEventTargetNodeAndSendEvents(targetNode, mouseEvent); | 1732 updateMouseEventTargetNodeAndSendEvents(targetNode, mouseEvent); |
| 1733 if (!m_nodeUnderMouse) | 1733 if (!m_nodeUnderMouse) |
| 1734 return WebInputEventResult::NotHandled; | 1734 return WebInputEventResult::NotHandled; |
| 1735 | 1735 |
| (...skipping 1972 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3708 | 3708 |
| 3709 FrameHost* EventHandler::frameHost() const | 3709 FrameHost* EventHandler::frameHost() const |
| 3710 { | 3710 { |
| 3711 if (!m_frame->page()) | 3711 if (!m_frame->page()) |
| 3712 return nullptr; | 3712 return nullptr; |
| 3713 | 3713 |
| 3714 return &m_frame->page()->frameHost(); | 3714 return &m_frame->page()->frameHost(); |
| 3715 } | 3715 } |
| 3716 | 3716 |
| 3717 } // namespace blink | 3717 } // namespace blink |
| OLD | NEW |