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

Unified Diff: ui/base/layout_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/base/cocoa/command_dispatcher.mm ('k') | ui/base/test/ui_controls_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/layout_mac.mm
diff --git a/ui/base/layout_mac.mm b/ui/base/layout_mac.mm
index 62331e99f0d79311bb60d26761a56adffb4402d2..27e12e1fa095c49b78ea5e0355e7b30510e2dfd0 100644
--- a/ui/base/layout_mac.mm
+++ b/ui/base/layout_mac.mm
@@ -12,9 +12,7 @@ namespace {
float GetScaleFactorScaleForNativeView(gfx::NativeView view) {
if (NSWindow* window = [view window]) {
- if ([window respondsToSelector:@selector(backingScaleFactor)])
- return [window backingScaleFactor];
- return [window userSpaceScaleFactor];
+ return [window backingScaleFactor];
}
NSArray* screens = [NSScreen screens];
@@ -22,9 +20,7 @@ float GetScaleFactorScaleForNativeView(gfx::NativeView view) {
return 1.0f;
NSScreen* screen = [screens objectAtIndex:0];
- if ([screen respondsToSelector:@selector(backingScaleFactor)])
- return [screen backingScaleFactor];
- return [screen userSpaceScaleFactor];
+ return [screen backingScaleFactor];
}
} // namespace
« no previous file with comments | « ui/base/cocoa/command_dispatcher.mm ('k') | ui/base/test/ui_controls_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698