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

Unified Diff: ui/base/layout_mac.mm

Issue 10908074: mac: Use convertSizeFromBacking: instead of the deprecated ...FromBase: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 3 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/base/layout_mac.mm
diff --git a/ui/base/layout_mac.mm b/ui/base/layout_mac.mm
index 060ffa5a482654baa8f22456ac5938d91ba9aae2..d799c65dc47573cf71dfe35a04cef32fffae7c5e 100644
--- a/ui/base/layout_mac.mm
+++ b/ui/base/layout_mac.mm
@@ -6,6 +6,9 @@
#include <Cocoa/Cocoa.h>
+#if !defined(MAC_OS_X_VERSION_10_7) || \
+ MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7
+
@interface NSScreen (LionAPI)
- (CGFloat)backingScaleFactor;
@end
@@ -14,6 +17,8 @@
- (CGFloat)backingScaleFactor;
@end
+#endif // 10.7
+
namespace {
float GetScaleFactorScaleForNativeView(gfx::NativeView view) {

Powered by Google App Engine
This is Rietveld 408576698