Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: third_party/WebKit/Source/core/input/EventHandler.cpp

Issue 2681803002: blink: clear tooltips on frame leaves (Closed)
Patch Set: rebase and nullptr -> WTF::String Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/input/EventHandlerTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 744 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 755
756 hoveredNode.setToShadowHostIfInUserAgentShadowRoot(); 756 hoveredNode.setToShadowHostIfInUserAgentShadowRoot();
757 page->chromeClient().mouseDidMoveOverElement(*m_frame, hoveredNode); 757 page->chromeClient().mouseDidMoveOverElement(*m_frame, hoveredNode);
758 758
759 return result; 759 return result;
760 } 760 }
761 761
762 void EventHandler::handleMouseLeaveEvent(const WebMouseEvent& event) { 762 void EventHandler::handleMouseLeaveEvent(const WebMouseEvent& event) {
763 TRACE_EVENT0("blink", "EventHandler::handleMouseLeaveEvent"); 763 TRACE_EVENT0("blink", "EventHandler::handleMouseLeaveEvent");
764 764
765 Page* page = m_frame->page();
766 if (page)
767 page->chromeClient().clearToolTip(*m_frame);
765 handleMouseMoveOrLeaveEvent(event, Vector<WebMouseEvent>(), 0, false, true); 768 handleMouseMoveOrLeaveEvent(event, Vector<WebMouseEvent>(), 0, false, true);
766 } 769 }
767 770
768 WebInputEventResult EventHandler::handleMouseMoveOrLeaveEvent( 771 WebInputEventResult EventHandler::handleMouseMoveOrLeaveEvent(
769 const WebMouseEvent& mouseEvent, 772 const WebMouseEvent& mouseEvent,
770 const Vector<WebMouseEvent>& coalescedEvents, 773 const Vector<WebMouseEvent>& coalescedEvents,
771 HitTestResult* hoveredNode, 774 HitTestResult* hoveredNode,
772 bool onlyUpdateScrollbars, 775 bool onlyUpdateScrollbars,
773 bool forceLeave) { 776 bool forceLeave) {
774 ASSERT(m_frame); 777 ASSERT(m_frame);
(...skipping 1361 matching lines...) Expand 10 before | Expand all | Expand 10 after
2136 } 2139 }
2137 2140
2138 FrameHost* EventHandler::frameHost() const { 2141 FrameHost* EventHandler::frameHost() const {
2139 if (!m_frame->page()) 2142 if (!m_frame->page())
2140 return nullptr; 2143 return nullptr;
2141 2144
2142 return &m_frame->page()->frameHost(); 2145 return &m_frame->page()->frameHost();
2143 } 2146 }
2144 2147
2145 } // namespace blink 2148 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/input/EventHandlerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698