| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This file contains forward declarations for items in later SDKs than the | 5 // This file contains forward declarations for items in later SDKs than the |
| 6 // default one with which Chromium is built (currently 10.10). | 6 // default one with which Chromium is built (currently 10.10). |
| 7 // If you call any function from this header, be sure to check at runtime for | 7 // If you call any function from this header, be sure to check at runtime for |
| 8 // respondsToSelector: before calling these functions (else your code will crash | 8 // respondsToSelector: before calling these functions (else your code will crash |
| 9 // on older OS X versions that chrome still supports). | 9 // on older OS X versions that chrome still supports). |
| 10 | 10 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 69 |
| 70 // ---------------------------------------------------------------------------- | 70 // ---------------------------------------------------------------------------- |
| 71 // Define NSStrings only available in newer versions of the OSX SDK to force | 71 // Define NSStrings only available in newer versions of the OSX SDK to force |
| 72 // them to be statically linked. | 72 // them to be statically linked. |
| 73 // ---------------------------------------------------------------------------- | 73 // ---------------------------------------------------------------------------- |
| 74 | 74 |
| 75 extern "C" { | 75 extern "C" { |
| 76 #if !defined(MAC_OS_X_VERSION_10_10) || \ | 76 #if !defined(MAC_OS_X_VERSION_10_10) || \ |
| 77 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_10 | 77 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_10 |
| 78 BASE_EXPORT extern NSString* const NSUserActivityTypeBrowsingWeb; | 78 BASE_EXPORT extern NSString* const NSUserActivityTypeBrowsingWeb; |
| 79 BASE_EXPORT extern NSString* const NSAppearanceNameVibrantDark; | |
| 80 BASE_EXPORT extern NSString* const NSAppearanceNameVibrantLight; | |
| 81 #endif // MAC_OS_X_VERSION_10_10 | 79 #endif // MAC_OS_X_VERSION_10_10 |
| 82 } // extern "C" | 80 } // extern "C" |
| 83 | 81 |
| 84 // ---------------------------------------------------------------------------- | 82 // ---------------------------------------------------------------------------- |
| 85 // If compiling against an older version of the OSX SDK, declare classes and | 83 // If compiling against an older version of the OSX SDK, declare classes and |
| 86 // functions that are available in newer versions of the OSX SDK. If compiling | 84 // functions that are available in newer versions of the OSX SDK. If compiling |
| 87 // against a newer version of the OSX SDK, redeclare those same classes and | 85 // against a newer version of the OSX SDK, redeclare those same classes and |
| 88 // functions to suppress -Wpartial-availability warnings. | 86 // functions to suppress -Wpartial-availability warnings. |
| 89 // ---------------------------------------------------------------------------- | 87 // ---------------------------------------------------------------------------- |
| 90 | 88 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 103 @end | 101 @end |
| 104 | 102 |
| 105 @interface CBUUID (YosemiteSDK) | 103 @interface CBUUID (YosemiteSDK) |
| 106 - (NSString*)UUIDString; | 104 - (NSString*)UUIDString; |
| 107 @end | 105 @end |
| 108 | 106 |
| 109 @interface NSViewController (YosemiteSDK) | 107 @interface NSViewController (YosemiteSDK) |
| 110 - (void)viewDidLoad; | 108 - (void)viewDidLoad; |
| 111 @end | 109 @end |
| 112 | 110 |
| 113 @interface NSWindow (YosemiteSDK) | |
| 114 - (void)setTitlebarAppearsTransparent:(BOOL)flag; | |
| 115 @end | |
| 116 | |
| 117 @interface NSProcessInfo (YosemiteSDK) | 111 @interface NSProcessInfo (YosemiteSDK) |
| 118 @property(readonly) NSOperatingSystemVersion operatingSystemVersion; | 112 @property(readonly) NSOperatingSystemVersion operatingSystemVersion; |
| 119 @end | 113 @end |
| 120 | 114 |
| 121 @interface NSLayoutConstraint (YosemiteSDK) | 115 @interface NSLayoutConstraint (YosemiteSDK) |
| 122 @property(getter=isActive) BOOL active; | 116 @property(getter=isActive) BOOL active; |
| 123 @end | 117 @end |
| 124 | 118 |
| 125 @interface NSVisualEffectView (YosemiteSDK) | |
| 126 - (void)setState:(NSVisualEffectState)state; | |
| 127 @end | |
| 128 | |
| 129 @class NSVisualEffectView; | |
| 130 | |
| 131 #endif // MAC_OS_X_VERSION_10_10 | 119 #endif // MAC_OS_X_VERSION_10_10 |
| 132 | 120 |
| 133 // Once Chrome no longer supports OSX 10.10.2, everything within this | 121 // Once Chrome no longer supports OSX 10.10.2, everything within this |
| 134 // preprocessor block can be removed. | 122 // preprocessor block can be removed. |
| 135 #if !defined(MAC_OS_X_VERSION_10_10_3) || \ | 123 #if !defined(MAC_OS_X_VERSION_10_10_3) || \ |
| 136 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_10_3 | 124 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_10_3 |
| 137 | 125 |
| 138 @interface NSEvent (YosemiteSDK) | 126 @interface NSEvent (YosemiteSDK) |
| 139 @property(readonly) NSInteger stage; | 127 @property(readonly) NSInteger stage; |
| 140 @end | 128 @end |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 | 180 |
| 193 // ---------------------------------------------------------------------------- | 181 // ---------------------------------------------------------------------------- |
| 194 // The symbol for kCWSSIDDidChangeNotification is available in the | 182 // The symbol for kCWSSIDDidChangeNotification is available in the |
| 195 // CoreWLAN.framework for OSX versions 10.6 through 10.10. The symbol is not | 183 // CoreWLAN.framework for OSX versions 10.6 through 10.10. The symbol is not |
| 196 // declared in the OSX 10.9+ SDK, so when compiling against an OSX 10.9+ SDK, | 184 // declared in the OSX 10.9+ SDK, so when compiling against an OSX 10.9+ SDK, |
| 197 // declare the symbol. | 185 // declare the symbol. |
| 198 // ---------------------------------------------------------------------------- | 186 // ---------------------------------------------------------------------------- |
| 199 BASE_EXPORT extern "C" NSString* const kCWSSIDDidChangeNotification; | 187 BASE_EXPORT extern "C" NSString* const kCWSSIDDidChangeNotification; |
| 200 | 188 |
| 201 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ | 189 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ |
| OLD | NEW |