| 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 // preprocessor block can be removed. | 180 // preprocessor block can be removed. |
| 181 #if !defined(MAC_OS_X_VERSION_10_11) || \ | 181 #if !defined(MAC_OS_X_VERSION_10_11) || \ |
| 182 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_11 | 182 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_11 |
| 183 | 183 |
| 184 @class NSLayoutDimension; | 184 @class NSLayoutDimension; |
| 185 @class NSLayoutXAxisAnchor; | 185 @class NSLayoutXAxisAnchor; |
| 186 @class NSLayoutYAxisAnchor; | 186 @class NSLayoutYAxisAnchor; |
| 187 | 187 |
| 188 @interface NSObject (ElCapitanSDK) | 188 @interface NSObject (ElCapitanSDK) |
| 189 - (NSLayoutConstraint*)constraintEqualToConstant:(CGFloat)c; | 189 - (NSLayoutConstraint*)constraintEqualToConstant:(CGFloat)c; |
| 190 - (NSLayoutConstraint*)constraintGreaterThanOrEqualToConstant:(CGFloat)c; | |
| 191 @end | 190 @end |
| 192 | 191 |
| 193 @interface NSView (ElCapitanSDK) | 192 @interface NSView (ElCapitanSDK) |
| 194 @property(readonly, strong) NSLayoutXAxisAnchor* leftAnchor; | 193 @property(readonly, strong) NSLayoutXAxisAnchor* leftAnchor; |
| 195 @property(readonly, strong) NSLayoutXAxisAnchor* rightAnchor; | 194 @property(readonly, strong) NSLayoutXAxisAnchor* rightAnchor; |
| 196 @property(readonly, strong) NSLayoutYAxisAnchor* bottomAnchor; | 195 @property(readonly, strong) NSLayoutYAxisAnchor* bottomAnchor; |
| 197 @property(readonly, strong) NSLayoutDimension* widthAnchor; | 196 @property(readonly, strong) NSLayoutDimension* widthAnchor; |
| 198 @end | 197 @end |
| 199 | 198 |
| 200 @interface NSWindow (ElCapitanSDK) | 199 @interface NSWindow (ElCapitanSDK) |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 action:(SEL)action; | 239 action:(SEL)action; |
| 241 @end | 240 @end |
| 242 | 241 |
| 243 @interface NSSegmentedControl (SierraPointOneSDK) | 242 @interface NSSegmentedControl (SierraPointOneSDK) |
| 244 + (instancetype)segmentedControlWithImages:(NSArray*)images | 243 + (instancetype)segmentedControlWithImages:(NSArray*)images |
| 245 trackingMode:(NSSegmentSwitchTracking)trackingMode | 244 trackingMode:(NSSegmentSwitchTracking)trackingMode |
| 246 target:(id)target | 245 target:(id)target |
| 247 action:(SEL)action; | 246 action:(SEL)action; |
| 248 @end | 247 @end |
| 249 | 248 |
| 250 @interface NSApplication (SierraPointOneSDK) | |
| 251 @property BOOL automaticCustomizeTouchBarMenuItemEnabled; | |
| 252 @end | |
| 253 | |
| 254 #endif // MAC_OS_X_VERSION_10_12_1 | 249 #endif // MAC_OS_X_VERSION_10_12_1 |
| 255 | 250 |
| 256 // ---------------------------------------------------------------------------- | 251 // ---------------------------------------------------------------------------- |
| 257 // The symbol for kCWSSIDDidChangeNotification is available in the | 252 // The symbol for kCWSSIDDidChangeNotification is available in the |
| 258 // CoreWLAN.framework for OSX versions 10.6 through 10.10. The symbol is not | 253 // CoreWLAN.framework for OSX versions 10.6 through 10.10. The symbol is not |
| 259 // declared in the OSX 10.9+ SDK, so when compiling against an OSX 10.9+ SDK, | 254 // declared in the OSX 10.9+ SDK, so when compiling against an OSX 10.9+ SDK, |
| 260 // declare the symbol. | 255 // declare the symbol. |
| 261 // ---------------------------------------------------------------------------- | 256 // ---------------------------------------------------------------------------- |
| 262 BASE_EXPORT extern "C" NSString* const kCWSSIDDidChangeNotification; | 257 BASE_EXPORT extern "C" NSString* const kCWSSIDDidChangeNotification; |
| 263 | 258 |
| 264 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ | 259 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ |
| OLD | NEW |