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

Unified Diff: content/browser/renderer_host/render_widget_host_view_event_handler.cc

Issue 2618063002: Send Mouse Leave events all the time when we get a ET_MOUSE_EXITED (Closed)
Patch Set: Fix typo Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/events/blink/blink_features.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_event_handler.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_event_handler.cc b/content/browser/renderer_host/render_widget_host_view_event_handler.cc
index 9002372c1d1e3a7db80c69b9b85a4875538440f0..13f710290c78eba42c9f767a78862020209717bb 100644
--- a/content/browser/renderer_host/render_widget_host_view_event_handler.cc
+++ b/content/browser/renderer_host/render_widget_host_view_event_handler.cc
@@ -548,7 +548,7 @@ bool RenderWidgetHostViewEventHandler::CanRendererHandleEvent(
if (event->type() == ui::ET_MOUSE_EXITED) {
if (mouse_locked || selection_popup)
return false;
-#if defined(OS_WIN)
+#if defined(OS_WIN) || defined(OS_LINUX)
// Don't forward the mouse leave message which is received when the context
// menu is displayed by the page. This confuses the page and causes state
// changes.
« no previous file with comments | « no previous file | ui/events/blink/blink_features.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698