| 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 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 545 @property(readonly) NSInteger stage; | 545 @property(readonly) NSInteger stage; |
| 546 @end | 546 @end |
| 547 | 547 |
| 548 @interface NSView (YosemiteSDK) | 548 @interface NSView (YosemiteSDK) |
| 549 - (void)setPressureConfiguration:(NSPressureConfiguration*)aConfiguration; | 549 - (void)setPressureConfiguration:(NSPressureConfiguration*)aConfiguration; |
| 550 @end | 550 @end |
| 551 | 551 |
| 552 #endif // MAC_OS_X_VERSION_10_10 | 552 #endif // MAC_OS_X_VERSION_10_10 |
| 553 | 553 |
| 554 // ---------------------------------------------------------------------------- | 554 // ---------------------------------------------------------------------------- |
| 555 // Chrome uses -[CWNetwork securityMode] and -[CWNetwork rssi] on OSX 10.6. The | |
| 556 // former method relies on the enum CWSecurityMode which was removed in the OSX | |
| 557 // 10.9 SDK. In order for Chrome to compile against an OSX 10.9+ SDK, Chrome | |
| 558 // must define this enum. Chrome must also declare these methods. | |
| 559 // | |
| 560 // These declarations and definitions will not be necessary once Chrome no | |
| 561 // longer runs on OSX 10.6. | |
| 562 // ---------------------------------------------------------------------------- | |
| 563 #if defined(MAC_OS_X_VERSION_10_9) && \ | |
| 564 MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_6 | |
| 565 typedef enum { | |
| 566 kCWSecurityModeOpen = 0, | |
| 567 kCWSecurityModeWEP, | |
| 568 kCWSecurityModeWPA_PSK, | |
| 569 kCWSecurityModeWPA2_PSK, | |
| 570 kCWSecurityModeWPA_Enterprise, | |
| 571 kCWSecurityModeWPA2_Enterprise, | |
| 572 kCWSecurityModeWPS, | |
| 573 kCWSecurityModeDynamicWEP | |
| 574 } CWSecurityMode; | |
| 575 | |
| 576 @interface CWNetwork (SnowLeopardSDK) | |
| 577 @property(readonly) NSNumber* rssi; | |
| 578 @property(readonly) NSNumber* securityMode; | |
| 579 @end | |
| 580 #endif | |
| 581 | |
| 582 // ---------------------------------------------------------------------------- | |
| 583 // The symbol for kCWSSIDDidChangeNotification is available in the | 555 // The symbol for kCWSSIDDidChangeNotification is available in the |
| 584 // CoreWLAN.framework for OSX versions 10.6 through 10.10. The symbol is not | 556 // CoreWLAN.framework for OSX versions 10.6 through 10.10. The symbol is not |
| 585 // declared in the OSX 10.9+ SDK, so when compiling against an OSX 10.9+ SDK, | 557 // declared in the OSX 10.9+ SDK, so when compiling against an OSX 10.9+ SDK, |
| 586 // declare the symbol. | 558 // declare the symbol. |
| 587 // ---------------------------------------------------------------------------- | 559 // ---------------------------------------------------------------------------- |
| 588 #if defined(MAC_OS_X_VERSION_10_9) && \ | 560 #if defined(MAC_OS_X_VERSION_10_9) && \ |
| 589 MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_9 | 561 MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_9 |
| 590 BASE_EXPORT extern "C" NSString* const kCWSSIDDidChangeNotification; | 562 BASE_EXPORT extern "C" NSString* const kCWSSIDDidChangeNotification; |
| 591 #endif | 563 #endif |
| 592 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ | 564 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ |
| OLD | NEW |