Chromium Code Reviews| 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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 228 @end | 228 @end |
| 229 | 229 |
| 230 @interface NSWindow (YosemiteSDK) | 230 @interface NSWindow (YosemiteSDK) |
| 231 - (void)setTitlebarAppearsTransparent:(BOOL)flag; | 231 - (void)setTitlebarAppearsTransparent:(BOOL)flag; |
| 232 @end | 232 @end |
| 233 | 233 |
| 234 @interface NSProcessInfo (YosemiteSDK) | 234 @interface NSProcessInfo (YosemiteSDK) |
| 235 @property(readonly) NSOperatingSystemVersion operatingSystemVersion; | 235 @property(readonly) NSOperatingSystemVersion operatingSystemVersion; |
| 236 @end | 236 @end |
| 237 | 237 |
| 238 @interface NSLayoutConstraint (YosemiteSDK) | |
| 239 @property(getter=isActive) BOOL active; | |
| 240 @end | |
| 241 | |
| 238 @interface NSVisualEffectView (YosemiteSDK) | 242 @interface NSVisualEffectView (YosemiteSDK) |
| 239 - (void)setState:(NSVisualEffectState)state; | 243 - (void)setState:(NSVisualEffectState)state; |
| 240 @end | 244 @end |
| 241 | 245 |
| 242 @class NSVisualEffectView; | 246 @class NSVisualEffectView; |
| 243 | 247 |
| 244 #endif // MAC_OS_X_VERSION_10_10 | 248 #endif // MAC_OS_X_VERSION_10_10 |
| 245 | 249 |
| 246 // Once Chrome no longer supports OSX 10.10.2, everything within this | 250 // Once Chrome no longer supports OSX 10.10.2, everything within this |
| 247 // preprocessor block can be removed. | 251 // preprocessor block can be removed. |
| 248 #if !defined(MAC_OS_X_VERSION_10_10_3) || \ | 252 #if !defined(MAC_OS_X_VERSION_10_10_3) || \ |
| 249 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_10_3 | 253 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_10_3 |
| 250 | 254 |
| 251 @interface NSEvent (YosemiteSDK) | 255 @interface NSEvent (YosemiteSDK) |
| 252 @property(readonly) NSInteger stage; | 256 @property(readonly) NSInteger stage; |
| 253 @end | 257 @end |
| 254 | 258 |
| 255 @interface NSView (YosemiteSDK) | 259 @interface NSView (YosemiteSDK) |
| 256 - (void)setPressureConfiguration:(NSPressureConfiguration*)aConfiguration; | 260 - (void)setPressureConfiguration:(NSPressureConfiguration*)aConfiguration; |
| 257 @end | 261 @end |
| 258 | 262 |
| 259 #endif // MAC_OS_X_VERSION_10_10 | 263 #endif // MAC_OS_X_VERSION_10_10 |
| 260 | 264 |
| 265 // Once Chrome no longer supports OSX 10.10, everything within this | |
| 266 // preprocessor block can be removed. | |
| 267 #if !defined(MAC_OS_X_VERSION_10_11) || \ | |
| 268 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_11 | |
| 269 | |
| 270 @interface NSLayoutXAxisAnchor : NSObject | |
|
yunchao
2016/10/12 04:18:56
Sorry to bother you, I failed to build chrome on M
tapted
2016/10/12 04:22:34
I think this lines needs to be
@interface NSLayou
yunchao
2016/10/12 04:30:37
Still not work. But the error is "expected unquali
| |
| 271 - (NSLayoutConstraint*)constraintEqualToAnchor:(id)anchor constant:(CGFloat)c; | |
| 272 @end | |
| 273 | |
| 274 @interface NSView (ElCapitanSDK) | |
| 275 @property(readonly, strong) NSLayoutXAxisAnchor* leftAnchor; | |
| 276 @property(readonly, strong) NSLayoutXAxisAnchor* rightAnchor; | |
| 277 @end | |
| 278 | |
| 279 #endif // MAC_OS_X_VERSION_10_11 | |
| 280 | |
| 261 // Once Chrome no longer supports OSX 10.11, everything within this | 281 // Once Chrome no longer supports OSX 10.11, everything within this |
| 262 // preprocessor block can be removed. | 282 // preprocessor block can be removed. |
| 263 #if !defined(MAC_OS_X_VERSION_10_12) || \ | 283 #if !defined(MAC_OS_X_VERSION_10_12) || \ |
| 264 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_12 | 284 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_12 |
| 265 | 285 |
| 266 @interface NSWindow (SierraSDK) | 286 @interface NSWindow (SierraSDK) |
| 267 @property(class) BOOL allowsAutomaticWindowTabbing; | 287 @property(class) BOOL allowsAutomaticWindowTabbing; |
| 268 @end | 288 @end |
| 269 | 289 |
| 270 #endif // MAC_OS_X_VERSION_10_12 | 290 #endif // MAC_OS_X_VERSION_10_12 |
| 271 | 291 |
| 272 // ---------------------------------------------------------------------------- | 292 // ---------------------------------------------------------------------------- |
| 273 // The symbol for kCWSSIDDidChangeNotification is available in the | 293 // The symbol for kCWSSIDDidChangeNotification is available in the |
| 274 // CoreWLAN.framework for OSX versions 10.6 through 10.10. The symbol is not | 294 // CoreWLAN.framework for OSX versions 10.6 through 10.10. The symbol is not |
| 275 // declared in the OSX 10.9+ SDK, so when compiling against an OSX 10.9+ SDK, | 295 // declared in the OSX 10.9+ SDK, so when compiling against an OSX 10.9+ SDK, |
| 276 // declare the symbol. | 296 // declare the symbol. |
| 277 // ---------------------------------------------------------------------------- | 297 // ---------------------------------------------------------------------------- |
| 278 BASE_EXPORT extern "C" NSString* const kCWSSIDDidChangeNotification; | 298 BASE_EXPORT extern "C" NSString* const kCWSSIDDidChangeNotification; |
| 279 | 299 |
| 280 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ | 300 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ |
| OLD | NEW |