Upstream version 10.38.220.0
[platform/framework/web/crosswalk.git] / src / base / mac / sdk_forward_declarations.h
index fad141f..bd0c15f 100644 (file)
@@ -239,8 +239,17 @@ enum {
 
 @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<NSObject>
++ (id<NSObject>)appearanceNamed:(NSString*)name;
+@end
+
 @interface NSView (MavericksSDK)
 - (void)setCanDrawSubviewsIntoLayer:(BOOL)flag;
+- (id<CrNSAppearance>)effectiveAppearance;
 @end
 
 enum {
@@ -266,6 +275,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_