| 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.6). | 6 // default one with which Chromium is built (currently 10.6). |
| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_9 | 63 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_9 |
| 64 | 64 |
| 65 // NSProgress is public API in 10.9, but a version of it exists and is usable | 65 // NSProgress is public API in 10.9, but a version of it exists and is usable |
| 66 // in 10.8. | 66 // in 10.8. |
| 67 @interface NSProgress : NSObject | 67 @interface NSProgress : NSObject |
| 68 @end | 68 @end |
| 69 | 69 |
| 70 @interface NSAppearance : NSObject | 70 @interface NSAppearance : NSObject |
| 71 @end | 71 @end |
| 72 | 72 |
| 73 @interface NSStackView : NSView |
| 74 @end |
| 75 |
| 73 #else | 76 #else |
| 74 | 77 |
| 75 @class NSProgress; | 78 @class NSProgress; |
| 76 @class NSAppearance; | 79 @class NSAppearance; |
| 80 @class NSStackView; |
| 77 | 81 |
| 78 #endif // MAC_OS_X_VERSION_10_9 | 82 #endif // MAC_OS_X_VERSION_10_9 |
| 79 | 83 |
| 80 #if !defined(MAC_OS_X_VERSION_10_10) || \ | 84 #if !defined(MAC_OS_X_VERSION_10_10) || \ |
| 81 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_10 | 85 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_10 |
| 82 | 86 |
| 83 @interface NSUserActivity : NSObject | 87 @interface NSUserActivity : NSObject |
| 84 @end | 88 @end |
| 85 | 89 |
| 86 #else | 90 #else |
| (...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 484 @end | 488 @end |
| 485 | 489 |
| 486 @interface NSWindow (MavericksSDK) | 490 @interface NSWindow (MavericksSDK) |
| 487 - (NSWindowOcclusionState)occlusionState; | 491 - (NSWindowOcclusionState)occlusionState; |
| 488 @end | 492 @end |
| 489 | 493 |
| 490 @interface NSAppearance (MavericksSDK) | 494 @interface NSAppearance (MavericksSDK) |
| 491 + (id<NSObject>)appearanceNamed:(NSString*)name; | 495 + (id<NSObject>)appearanceNamed:(NSString*)name; |
| 492 @end | 496 @end |
| 493 | 497 |
| 498 @interface NSStackView (MavericksSDK) |
| 499 + (instancetype)stackViewWithViews:(NSArray*)views; |
| 500 @property NSEdgeInsets edgeInsets; |
| 501 @end |
| 502 |
| 494 @interface CBPeripheral (MavericksSDK) | 503 @interface CBPeripheral (MavericksSDK) |
| 495 @property(readonly, nonatomic) NSUUID* identifier; | 504 @property(readonly, nonatomic) NSUUID* identifier; |
| 496 @end | 505 @end |
| 497 | 506 |
| 498 @interface NSVisualEffectView (MavericksSDK) | 507 @interface NSVisualEffectView (MavericksSDK) |
| 499 - (void)setState:(NSVisualEffectState)state; | 508 - (void)setState:(NSVisualEffectState)state; |
| 500 @end | 509 @end |
| 501 | 510 |
| 502 @class NSVisualEffectView; | 511 @class NSVisualEffectView; |
| 503 | 512 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 // The symbol for kCWSSIDDidChangeNotification is available in the | 566 // The symbol for kCWSSIDDidChangeNotification is available in the |
| 558 // CoreWLAN.framework for OSX versions 10.6 through 10.10. The symbol is not | 567 // CoreWLAN.framework for OSX versions 10.6 through 10.10. The symbol is not |
| 559 // declared in the OSX 10.9+ SDK, so when compiling against an OSX 10.9+ SDK, | 568 // declared in the OSX 10.9+ SDK, so when compiling against an OSX 10.9+ SDK, |
| 560 // declare the symbol. | 569 // declare the symbol. |
| 561 // ---------------------------------------------------------------------------- | 570 // ---------------------------------------------------------------------------- |
| 562 #if defined(MAC_OS_X_VERSION_10_9) && \ | 571 #if defined(MAC_OS_X_VERSION_10_9) && \ |
| 563 MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_9 | 572 MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_9 |
| 564 BASE_EXPORT extern "C" NSString* const kCWSSIDDidChangeNotification; | 573 BASE_EXPORT extern "C" NSString* const kCWSSIDDidChangeNotification; |
| 565 #endif | 574 #endif |
| 566 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ | 575 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ |
| OLD | NEW |