| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 @end | 122 @end |
| 123 | 123 |
| 124 @interface NSDictionary (MountainLionSDK) | 124 @interface NSDictionary (MountainLionSDK) |
| 125 - (id)objectForKeyedSubscript:(id)key; | 125 - (id)objectForKeyedSubscript:(id)key; |
| 126 @end | 126 @end |
| 127 | 127 |
| 128 @interface NSMutableDictionary (MountainLionSDK) | 128 @interface NSMutableDictionary (MountainLionSDK) |
| 129 - (void)setObject:(id)obj forKeyedSubscript:(id<NSCopying>)key; | 129 - (void)setObject:(id)obj forKeyedSubscript:(id<NSCopying>)key; |
| 130 @end | 130 @end |
| 131 | 131 |
| 132 @interface NSFileManager (MountainLionSDK) |
| 133 - (BOOL)trashItemAtURL:(NSURL*)url |
| 134 resultingItemURL:(NSURL**)outResultingURL |
| 135 error:(NSError**)error; |
| 136 @end |
| 137 |
| 132 #endif // MAC_OS_X_VERSION_10_8 | 138 #endif // MAC_OS_X_VERSION_10_8 |
| 133 | 139 |
| 134 // Once Chrome no longer supports OSX 10.8, everything within this preprocessor | 140 // Once Chrome no longer supports OSX 10.8, everything within this preprocessor |
| 135 // block can be removed. | 141 // block can be removed. |
| 136 #if !defined(MAC_OS_X_VERSION_10_9) || \ | 142 #if !defined(MAC_OS_X_VERSION_10_9) || \ |
| 137 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_9 | 143 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_9 |
| 138 | 144 |
| 139 // NSProgress is public API in 10.9, but a version of it exists and is usable | 145 // NSProgress is public API in 10.9, but a version of it exists and is usable |
| 140 // in 10.8. | 146 // in 10.8. |
| 141 @class NSProgress; | 147 @class NSProgress; |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 | 271 |
| 266 // ---------------------------------------------------------------------------- | 272 // ---------------------------------------------------------------------------- |
| 267 // The symbol for kCWSSIDDidChangeNotification is available in the | 273 // The symbol for kCWSSIDDidChangeNotification is available in the |
| 268 // CoreWLAN.framework for OSX versions 10.6 through 10.10. The symbol is not | 274 // CoreWLAN.framework for OSX versions 10.6 through 10.10. The symbol is not |
| 269 // declared in the OSX 10.9+ SDK, so when compiling against an OSX 10.9+ SDK, | 275 // declared in the OSX 10.9+ SDK, so when compiling against an OSX 10.9+ SDK, |
| 270 // declare the symbol. | 276 // declare the symbol. |
| 271 // ---------------------------------------------------------------------------- | 277 // ---------------------------------------------------------------------------- |
| 272 BASE_EXPORT extern "C" NSString* const kCWSSIDDidChangeNotification; | 278 BASE_EXPORT extern "C" NSString* const kCWSSIDDidChangeNotification; |
| 273 | 279 |
| 274 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ | 280 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ |
| OLD | NEW |