Chromium Code Reviews| Index: base/mac/sdk_forward_declarations.h |
| diff --git a/base/mac/sdk_forward_declarations.h b/base/mac/sdk_forward_declarations.h |
| index 387400d43de55c53e746bf513f0d29a334e7a348..0b2e89761b3215366b972b3f91d067956af54b81 100644 |
| --- a/base/mac/sdk_forward_declarations.h |
| +++ b/base/mac/sdk_forward_declarations.h |
| @@ -4,6 +4,9 @@ |
| // This file contains forward declarations for items in later SDKs than the |
| // default one with which Chromium is built (currently 10.6). |
| +// If you call any function from this header, be sure to check at runtime for |
| +// respondsToSelector: before calling these functions (else your code will crash |
| +// on older OS X versions that chrome still supports). |
| #ifndef BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ |
| #define BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ |
| @@ -43,6 +46,15 @@ typedef NSUInteger NSEventSwipeTrackingOptions; |
| - (BOOL)isDirectionInvertedFromDevice; |
| @end |
| + |
| +@interface NSScreen (LionAPI) |
|
Mark Mentovai
2013/06/06 13:49:57
The category above is named LionSDK and your two n
Nico
2013/06/10 16:54:39
Done.
|
| +- (CGFloat)backingScaleFactor; |
| +- (NSRect)convertRectToBacking:(NSRect)aRect; |
| +@end |
| + |
| +@interface NSWindow (LionAPI) |
| +- (CGFloat)backingScaleFactor; |
| +@end |
| #endif // MAC_OS_X_VERSION_10_7 |
| #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ |