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

Unified Diff: ui/views/mouse_watcher_view_host.cc

Issue 1935083003: gfx::Screen: Replace GetWindowUnderCursor() with IsWindowUnderCursor(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compile fixes Created 4 years, 8 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
Index: ui/views/mouse_watcher_view_host.cc
diff --git a/ui/views/mouse_watcher_view_host.cc b/ui/views/mouse_watcher_view_host.cc
index fdf88dd9a340476a74205394fee46a34cce0d849..b6856e0386315a3043c65a5f997b1a6893ba9156 100644
--- a/ui/views/mouse_watcher_view_host.cc
+++ b/ui/views/mouse_watcher_view_host.cc
@@ -49,8 +49,8 @@ bool MouseWatcherViewHost::IsMouseOverWindow() {
if (!widget)
return false;
- return display::Screen::GetScreen()->GetWindowUnderCursor() ==
- widget->GetNativeWindow();
+ return display::Screen::GetScreen()->IsWindowUnderCursor(
+ widget->GetNativeWindow());
}
} // namespace views

Powered by Google App Engine
This is Rietveld 408576698