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

Unified Diff: ui/gfx/screen_mac.mm

Issue 1777653002: Prepare ui/ module for compilation with OS X 10.7 deployment target. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More compile errors. Created 4 years, 9 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/events/cocoa/events_mac_unittest.mm ('k') | ui/snapshot/snapshot_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/screen_mac.mm
diff --git a/ui/gfx/screen_mac.mm b/ui/gfx/screen_mac.mm
index 6fb7c6e8dc284f597a9f5cac0b9966d085968b97..1ee6938e84b42ed9b43396fe7f2ea1de6f24f3a9 100644
--- a/ui/gfx/screen_mac.mm
+++ b/ui/gfx/screen_mac.mm
@@ -72,11 +72,7 @@ gfx::Display GetDisplayForScreen(NSScreen* screen) {
display.set_bounds(ConvertCoordinateSystem(frame));
display.set_work_area(ConvertCoordinateSystem(visible_frame));
}
- CGFloat scale;
- if ([screen respondsToSelector:@selector(backingScaleFactor)])
- scale = [screen backingScaleFactor];
- else
- scale = [screen userSpaceScaleFactor];
+ CGFloat scale = [screen backingScaleFactor];
if (gfx::Display::HasForceDeviceScaleFactor())
scale = gfx::Display::GetForcedDeviceScaleFactor();
« no previous file with comments | « ui/events/cocoa/events_mac_unittest.mm ('k') | ui/snapshot/snapshot_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698