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 e8682caf6fa7ab0d51d801483d485c5bd8369757..b8a0af28ed766c45c76b20fb9e8b23fe20c5a50d 100644 |
| --- a/base/mac/sdk_forward_declarations.h |
| +++ b/base/mac/sdk_forward_declarations.h |
| @@ -244,8 +244,17 @@ enum { |
| + (BOOL)screensHaveSeparateSpaces; |
| @end |
| +// NSAppearance is a new class in the 10.9 SDK. New classes cannot be |
| +// forward-declared because they also require an @implementation, which would |
| +// produce conflicting linkage. Instead, just declare the necessary pieces of |
| +// the interface as a protocol, and treat objects of this type as id. |
| +@protocol CrNSAppearance |
| +- (NSString*)name; |
|
Robert Sesek
2014/09/12 19:16:23
-name is a new property in 10.10, which is why it
dewittj
2014/09/12 23:24:20
Done.
|
| +@end |
| + |
| @interface NSView (MavericksSDK) |
| - (void)setCanDrawSubviewsIntoLayer:(BOOL)flag; |
| +- (id<CrNSAppearance>)effectiveAppearance; |
| @end |
| enum { |
| @@ -271,6 +280,8 @@ typedef NSUInteger NSWindowOcclusionState; |
| BASE_EXPORT extern "C" NSString* const NSUserActivityTypeBrowsingWeb; |
| +BASE_EXPORT extern "C" NSString* const NSAppearanceNameVibrantDark; |
| + |
| #endif // MAC_OS_X_VERSION_10_10 |
| #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ |