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

Unified Diff: ui/views/mouse_watcher_view_host.cc

Issue 1608733002: Remove ui/gfx/screen_type_delegate.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-4
Patch Set: and another rebase Created 4 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 | « ui/views/examples/examples_main.cc ('k') | ui/views/mus/screen_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 54412cf10d5613531c6abcd1490d2301bc006b16..ac02b3cf4bf8c72b7f3668bc0e68a7c265b6c353 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 gfx::Screen::GetScreenFor(widget->GetNativeView())->
- GetWindowUnderCursor() == widget->GetNativeWindow();
+ return gfx::Screen::GetScreen()->GetWindowUnderCursor() ==
+ widget->GetNativeWindow();
}
} // namespace views
« no previous file with comments | « ui/views/examples/examples_main.cc ('k') | ui/views/mus/screen_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698