| 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 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 @end | 531 @end |
| 532 | 532 |
| 533 @interface NSViewController (YosemiteSDK) | 533 @interface NSViewController (YosemiteSDK) |
| 534 - (void)viewDidLoad; | 534 - (void)viewDidLoad; |
| 535 @end | 535 @end |
| 536 | 536 |
| 537 @interface NSWindow (YosemiteSDK) | 537 @interface NSWindow (YosemiteSDK) |
| 538 - (void)setTitlebarAppearsTransparent:(BOOL)flag; | 538 - (void)setTitlebarAppearsTransparent:(BOOL)flag; |
| 539 @end | 539 @end |
| 540 | 540 |
| 541 @interface NSProcessInfo (YosemiteSDK) |
| 542 @property(readonly) NSOperatingSystemVersion operatingSystemVersion; |
| 543 @end |
| 544 |
| 541 #endif // MAC_OS_X_VERSION_10_10 | 545 #endif // MAC_OS_X_VERSION_10_10 |
| 542 | 546 |
| 543 // Once Chrome no longer supports OSX 10.10.2, everything within this | 547 // Once Chrome no longer supports OSX 10.10.2, everything within this |
| 544 // preprocessor block can be removed. | 548 // preprocessor block can be removed. |
| 545 #if !defined(MAC_OS_X_VERSION_10_10_3) || \ | 549 #if !defined(MAC_OS_X_VERSION_10_10_3) || \ |
| 546 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_10_3 | 550 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_10_3 |
| 547 | 551 |
| 548 @interface NSEvent (YosemiteSDK) | 552 @interface NSEvent (YosemiteSDK) |
| 549 @property(readonly) NSInteger stage; | 553 @property(readonly) NSInteger stage; |
| 550 @end | 554 @end |
| 551 | 555 |
| 552 @interface NSView (YosemiteSDK) | 556 @interface NSView (YosemiteSDK) |
| 553 - (void)setPressureConfiguration:(NSPressureConfiguration*)aConfiguration; | 557 - (void)setPressureConfiguration:(NSPressureConfiguration*)aConfiguration; |
| 554 @end | 558 @end |
| 555 | 559 |
| 556 #endif // MAC_OS_X_VERSION_10_10 | 560 #endif // MAC_OS_X_VERSION_10_10 |
| 557 | 561 |
| 558 // ---------------------------------------------------------------------------- | 562 // ---------------------------------------------------------------------------- |
| 559 // The symbol for kCWSSIDDidChangeNotification is available in the | 563 // The symbol for kCWSSIDDidChangeNotification is available in the |
| 560 // CoreWLAN.framework for OSX versions 10.6 through 10.10. The symbol is not | 564 // CoreWLAN.framework for OSX versions 10.6 through 10.10. The symbol is not |
| 561 // declared in the OSX 10.9+ SDK, so when compiling against an OSX 10.9+ SDK, | 565 // declared in the OSX 10.9+ SDK, so when compiling against an OSX 10.9+ SDK, |
| 562 // declare the symbol. | 566 // declare the symbol. |
| 563 // ---------------------------------------------------------------------------- | 567 // ---------------------------------------------------------------------------- |
| 564 #if defined(MAC_OS_X_VERSION_10_9) && \ | 568 #if defined(MAC_OS_X_VERSION_10_9) && \ |
| 565 MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_9 | 569 MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_9 |
| 566 BASE_EXPORT extern "C" NSString* const kCWSSIDDidChangeNotification; | 570 BASE_EXPORT extern "C" NSString* const kCWSSIDDidChangeNotification; |
| 567 #endif | 571 #endif |
| 568 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ | 572 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ |
| OLD | NEW |