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

Unified Diff: base/mac/sdk_forward_declarations.h

Issue 564953002: Add support for dark theme in Mac Notification Center (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile. Created 6 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
« no previous file with comments | « no previous file | base/mac/sdk_forward_declarations.mm » ('j') | ui/message_center/cocoa/status_item_view.mm » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..c7e6cda7194ff5a4c577216b9258ad16468ce61d 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<NSObject>
++ (id<NSObject>)appearanceNamed:(NSString*)name;
+@end
+
@interface NSView (MavericksSDK)
- (void)setCanDrawSubviewsIntoLayer:(BOOL)flag;
+- (id<CrNSAppearance>)effectiveAppearance;
Robert Sesek 2014/09/15 18:02:37 Actually, this needs to go into the 10.10 section
dewittj 2014/09/15 19:15:08 Really? https://developer.apple.com/library/mac/do
Robert Sesek 2014/09/15 19:40:56 Oh, my mistake. I skimmed the 10.10 API diffs too
@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_
« no previous file with comments | « no previous file | base/mac/sdk_forward_declarations.mm » ('j') | ui/message_center/cocoa/status_item_view.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698