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

Unified Diff: ui/views/view.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
Index: ui/views/view.cc
diff --git a/ui/views/view.cc b/ui/views/view.cc
index 45467ab23dbfc0fdbf68fdd9ad1ef9532bd20e64..9ee7272bd04f4fbaa7078350e6eeb8462b484462 100644
--- a/ui/views/view.cc
+++ b/ui/views/view.cc
@@ -946,8 +946,7 @@ bool View::IsMouseHovered() const {
if (!GetWidget()->IsMouseEventsEnabled())
return false;
- gfx::Point cursor_pos(gfx::Screen::GetScreenFor(
- GetWidget()->GetNativeView())->GetCursorScreenPoint());
+ gfx::Point cursor_pos(gfx::Screen::GetScreen()->GetCursorScreenPoint());
ConvertPointFromScreen(this, &cursor_pos);
return HitTestPoint(cursor_pos);
}
« no previous file with comments | « ui/views/test/desktop_screen_x11_test_api.cc ('k') | ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698