| 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 BASE_EXPORT extern "C" NSString* const NSWindowDidEnterFullScreenNotification; | 212 BASE_EXPORT extern "C" NSString* const NSWindowDidEnterFullScreenNotification; |
| 213 BASE_EXPORT extern "C" NSString* const NSWindowDidExitFullScreenNotification; | 213 BASE_EXPORT extern "C" NSString* const NSWindowDidExitFullScreenNotification; |
| 214 BASE_EXPORT extern "C" NSString* const | 214 BASE_EXPORT extern "C" NSString* const |
| 215 NSWindowDidChangeBackingPropertiesNotification; | 215 NSWindowDidChangeBackingPropertiesNotification; |
| 216 | 216 |
| 217 @protocol NSWindowDelegateFullScreenAdditions | 217 @protocol NSWindowDelegateFullScreenAdditions |
| 218 - (void)windowDidFailToEnterFullScreen:(NSWindow*)window; | 218 - (void)windowDidFailToEnterFullScreen:(NSWindow*)window; |
| 219 - (void)windowDidFailToExitFullScreen:(NSWindow*)window; | 219 - (void)windowDidFailToExitFullScreen:(NSWindow*)window; |
| 220 @end | 220 @end |
| 221 | 221 |
| 222 enum { | |
| 223 CBPeripheralStateDisconnected = 0, | |
| 224 CBPeripheralStateConnecting, | |
| 225 CBPeripheralStateConnected, | |
| 226 }; | |
| 227 typedef NSInteger CBPeripheralState; | |
| 228 | |
| 229 @interface CBPeripheral : NSObject | |
| 230 @property(readonly, nonatomic) CFUUIDRef UUID; | |
| 231 @property(retain, readonly) NSString* name; | |
| 232 @property(readonly) BOOL isConnected; | |
| 233 @end | |
| 234 | |
| 235 enum { | |
| 236 CBCentralManagerStateUnknown = 0, | |
| 237 CBCentralManagerStateResetting, | |
| 238 CBCentralManagerStateUnsupported, | |
| 239 CBCentralManagerStateUnauthorized, | |
| 240 CBCentralManagerStatePoweredOff, | |
| 241 CBCentralManagerStatePoweredOn, | |
| 242 }; | |
| 243 typedef NSInteger CBCentralManagerState; | |
| 244 | |
| 245 @protocol CBCentralManagerDelegate; | |
| 246 | |
| 247 @interface CBCentralManager : NSObject | |
| 248 @property(readonly) CBCentralManagerState state; | |
| 249 - (id)initWithDelegate:(id<CBCentralManagerDelegate>)delegate | |
| 250 queue:(dispatch_queue_t)queue; | |
| 251 - (void)scanForPeripheralsWithServices:(NSArray*)serviceUUIDs | |
| 252 options:(NSDictionary*)options; | |
| 253 - (void)stopScan; | |
| 254 @end | |
| 255 | |
| 256 @protocol CBCentralManagerDelegate<NSObject> | |
| 257 - (void)centralManagerDidUpdateState:(CBCentralManager*)central; | |
| 258 - (void)centralManager:(CBCentralManager*)central | |
| 259 didDiscoverPeripheral:(CBPeripheral*)peripheral | |
| 260 advertisementData:(NSDictionary*)advertisementData | |
| 261 RSSI:(NSNumber*)RSSI; | |
| 262 @end | |
| 263 | |
| 264 @interface CBUUID : NSObject | |
| 265 @property(nonatomic, readonly) NSData* data; | |
| 266 @end | |
| 267 | |
| 268 #endif // MAC_OS_X_VERSION_10_7 | 222 #endif // MAC_OS_X_VERSION_10_7 |
| 269 | 223 |
| 270 #if !defined(MAC_OS_X_VERSION_10_8) || \ | 224 #if !defined(MAC_OS_X_VERSION_10_8) || \ |
| 271 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_8 | 225 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_8 |
| 272 | 226 |
| 273 enum { | 227 enum { |
| 274 NSEventPhaseMayBegin = 0x1 << 5 | 228 NSEventPhaseMayBegin = 0x1 << 5 |
| 275 }; | 229 }; |
| 276 | 230 |
| 277 @interface NSColor (MountainLionSDK) | 231 @interface NSColor (MountainLionSDK) |
| 278 - (CGColorRef)CGColor; | 232 - (CGColorRef)CGColor; |
| 279 @end | 233 @end |
| 280 | 234 |
| 281 @interface NSUUID : NSObject | |
| 282 - (NSString*)UUIDString; | |
| 283 @end | |
| 284 | |
| 285 #endif // MAC_OS_X_VERSION_10_8 | 235 #endif // MAC_OS_X_VERSION_10_8 |
| 286 | 236 |
| 287 | 237 |
| 288 #if !defined(MAC_OS_X_VERSION_10_9) || \ | 238 #if !defined(MAC_OS_X_VERSION_10_9) || \ |
| 289 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_9 | 239 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_9 |
| 290 | 240 |
| 291 // NSProgress is public API in 10.9, but a version of it exists and is usable | 241 // NSProgress is public API in 10.9, but a version of it exists and is usable |
| 292 // in 10.8. | 242 // in 10.8. |
| 293 | 243 |
| 294 @interface NSProgress : NSObject | 244 @interface NSProgress : NSObject |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 @end | 297 @end |
| 348 | 298 |
| 349 | 299 |
| 350 BASE_EXPORT extern "C" NSString* const | 300 BASE_EXPORT extern "C" NSString* const |
| 351 NSWindowDidChangeOcclusionStateNotification; | 301 NSWindowDidChangeOcclusionStateNotification; |
| 352 | 302 |
| 353 enum { | 303 enum { |
| 354 NSWorkspaceLaunchWithErrorPresentation = 0x00000040 | 304 NSWorkspaceLaunchWithErrorPresentation = 0x00000040 |
| 355 }; | 305 }; |
| 356 | 306 |
| 357 @interface CBPeripheral (MavericksSDK) | |
| 358 @property(readonly, nonatomic) NSUUID* identifier; | |
| 359 @end | |
| 360 | |
| 361 #else // !MAC_OS_X_VERSION_10_9 | 307 #else // !MAC_OS_X_VERSION_10_9 |
| 362 | 308 |
| 363 typedef enum { | 309 typedef enum { |
| 364 kCWSecurityModeOpen = 0, | 310 kCWSecurityModeOpen = 0, |
| 365 kCWSecurityModeWEP, | 311 kCWSecurityModeWEP, |
| 366 kCWSecurityModeWPA_PSK, | 312 kCWSecurityModeWPA_PSK, |
| 367 kCWSecurityModeWPA2_PSK, | 313 kCWSecurityModeWPA2_PSK, |
| 368 kCWSecurityModeWPA_Enterprise, | 314 kCWSecurityModeWPA_Enterprise, |
| 369 kCWSecurityModeWPA2_Enterprise, | 315 kCWSecurityModeWPA2_Enterprise, |
| 370 kCWSecurityModeWPS, | 316 kCWSecurityModeWPS, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 392 - (instancetype)initWithActivityType:(NSString*)activityType; | 338 - (instancetype)initWithActivityType:(NSString*)activityType; |
| 393 - (void)becomeCurrent; | 339 - (void)becomeCurrent; |
| 394 - (void)invalidate; | 340 - (void)invalidate; |
| 395 | 341 |
| 396 @end | 342 @end |
| 397 | 343 |
| 398 BASE_EXPORT extern "C" NSString* const NSUserActivityTypeBrowsingWeb; | 344 BASE_EXPORT extern "C" NSString* const NSUserActivityTypeBrowsingWeb; |
| 399 | 345 |
| 400 BASE_EXPORT extern "C" NSString* const NSAppearanceNameVibrantDark; | 346 BASE_EXPORT extern "C" NSString* const NSAppearanceNameVibrantDark; |
| 401 | 347 |
| 402 @interface CBUUID (YosemiteSDK) | |
| 403 - (NSString*)UUIDString; | |
| 404 @end | |
| 405 | |
| 406 #endif // MAC_OS_X_VERSION_10_10 | 348 #endif // MAC_OS_X_VERSION_10_10 |
| 407 | 349 |
| 408 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ | 350 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ |
| OLD | NEW |