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

Unified Diff: chrome/browser/ui/app_list/app_list_service_mac.mm

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: chrome/browser/ui/app_list/app_list_service_mac.mm
diff --git a/chrome/browser/ui/app_list/app_list_service_mac.mm b/chrome/browser/ui/app_list/app_list_service_mac.mm
index 03a81b15c4c50f5654cb407553db5ef90312ed67..bba9cf1bea188d7707edeaeb6451e0d0374eb084 100644
--- a/chrome/browser/ui/app_list/app_list_service_mac.mm
+++ b/chrome/browser/ui/app_list/app_list_service_mac.mm
@@ -229,7 +229,7 @@ void AdjustWorkAreaForDock(const gfx::Display& display,
void GetAppListWindowOrigins(
NSWindow* window, NSPoint* target_origin, NSPoint* start_origin) {
- gfx::Screen* const screen = gfx::Screen::GetScreenFor([window contentView]);
+ gfx::Screen* const screen = gfx::Screen::GetScreen();
// Ensure y coordinates are flipped back into AppKit's coordinate system.
bool cursor_is_visible = CGCursorIsVisible();
gfx::Display display;
« no previous file with comments | « chrome/browser/sync/sync_error_notifier_ash_unittest.cc ('k') | chrome/browser/ui/app_list/app_list_shower_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698