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

Unified Diff: ui/events/x/events_x_utils.cc

Issue 2751833006: Treat NotifyVirtual events as mouse move events for blink. (Closed)
Patch Set: Try to fix build 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 side-by-side diff with in-line comments
Download patch
« ui/events/blink/web_input_event.cc ('K') | « ui/events/x/events_x_utils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/x/events_x_utils.cc
diff --git a/ui/events/x/events_x_utils.cc b/ui/events/x/events_x_utils.cc
index fa37616887cec9592fa12b42e0aecdb70c18de07..20ada929c1aadd3e30515542a685d95760414454 100644
--- a/ui/events/x/events_x_utils.cc
+++ b/ui/events/x/events_x_utils.cc
@@ -815,4 +815,8 @@ void ResetTimestampRolloverCountersForTesting(
SetEventTickClockForTesting(std::move(tick_clock));
}
+bool IsVirtualMouseLeaveEvent(const XEvent& xev) {
+ return xev.type == LeaveNotify && xev.xcrossing.detail == NotifyVirtual;
+}
+
} // namespace ui
« ui/events/blink/web_input_event.cc ('K') | « ui/events/x/events_x_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698