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

Unified Diff: ui/views/cocoa/bridged_native_widget.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
« no previous file with comments | « ui/views/bubble/bubble_frame_view.cc ('k') | ui/views/cocoa/tooltip_manager_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/cocoa/bridged_native_widget.mm
diff --git a/ui/views/cocoa/bridged_native_widget.mm b/ui/views/cocoa/bridged_native_widget.mm
index 24bba74dd91727e12fe250c3c02c4b1145875e10..6e69b9246c9104d9e7e701353e39f891efd1864b 100644
--- a/ui/views/cocoa/bridged_native_widget.mm
+++ b/ui/views/cocoa/bridged_native_widget.mm
@@ -96,7 +96,7 @@ int kWindowPropertiesKey;
float GetDeviceScaleFactorFromView(NSView* view) {
gfx::Display display =
- gfx::Screen::GetScreenFor(view)->GetDisplayNearestWindow(view);
+ gfx::Screen::GetScreen()->GetDisplayNearestWindow(view);
DCHECK(display.is_valid());
return display.device_scale_factor();
}
« no previous file with comments | « ui/views/bubble/bubble_frame_view.cc ('k') | ui/views/cocoa/tooltip_manager_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698