Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights |
| 3 * reserved. | 3 * reserved. |
| 4 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 4 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
| 5 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) | 5 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) |
| 6 * | 6 * |
| 7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
| 8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
| 9 * are met: | 9 * are met: |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 754 | 754 |
| 755 hoveredNode.setToShadowHostIfInUserAgentShadowRoot(); | 755 hoveredNode.setToShadowHostIfInUserAgentShadowRoot(); |
| 756 page->chromeClient().mouseDidMoveOverElement(*m_frame, hoveredNode); | 756 page->chromeClient().mouseDidMoveOverElement(*m_frame, hoveredNode); |
| 757 | 757 |
| 758 return result; | 758 return result; |
| 759 } | 759 } |
| 760 | 760 |
| 761 void EventHandler::handleMouseLeaveEvent(const WebMouseEvent& event) { | 761 void EventHandler::handleMouseLeaveEvent(const WebMouseEvent& event) { |
| 762 TRACE_EVENT0("blink", "EventHandler::handleMouseLeaveEvent"); | 762 TRACE_EVENT0("blink", "EventHandler::handleMouseLeaveEvent"); |
| 763 | 763 |
| 764 Page* page = m_frame->page(); | |
| 765 if (page) | |
| 766 page->chromeClient().mouseDidLeave(*m_frame); | |
|
bokan
2017/02/07 22:36:25
just call chromeClient().clearToolTip() directly f
Elly Fong-Jones
2017/02/09 19:21:19
Done.
| |
| 764 handleMouseMoveOrLeaveEvent(event, Vector<WebMouseEvent>(), 0, false, true); | 767 handleMouseMoveOrLeaveEvent(event, Vector<WebMouseEvent>(), 0, false, true); |
| 765 } | 768 } |
| 766 | 769 |
| 767 WebInputEventResult EventHandler::handleMouseMoveOrLeaveEvent( | 770 WebInputEventResult EventHandler::handleMouseMoveOrLeaveEvent( |
| 768 const WebMouseEvent& mouseEvent, | 771 const WebMouseEvent& mouseEvent, |
| 769 const Vector<WebMouseEvent>& coalescedEvents, | 772 const Vector<WebMouseEvent>& coalescedEvents, |
| 770 HitTestResult* hoveredNode, | 773 HitTestResult* hoveredNode, |
| 771 bool onlyUpdateScrollbars, | 774 bool onlyUpdateScrollbars, |
| 772 bool forceLeave) { | 775 bool forceLeave) { |
| 773 ASSERT(m_frame); | 776 ASSERT(m_frame); |
| (...skipping 1358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2132 } | 2135 } |
| 2133 | 2136 |
| 2134 FrameHost* EventHandler::frameHost() const { | 2137 FrameHost* EventHandler::frameHost() const { |
| 2135 if (!m_frame->page()) | 2138 if (!m_frame->page()) |
| 2136 return nullptr; | 2139 return nullptr; |
| 2137 | 2140 |
| 2138 return &m_frame->page()->frameHost(); | 2141 return &m_frame->page()->frameHost(); |
| 2139 } | 2142 } |
| 2140 | 2143 |
| 2141 } // namespace blink | 2144 } // namespace blink |
| OLD | NEW |