| 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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 // version of the OSX SDK, redeclare those same functions to suppress | 286 // version of the OSX SDK, redeclare those same functions to suppress |
| 287 // -Wpartial-availability warnings. | 287 // -Wpartial-availability warnings. |
| 288 // ---------------------------------------------------------------------------- | 288 // ---------------------------------------------------------------------------- |
| 289 | 289 |
| 290 // Once Chrome no longer supports OSX 10.6, everything within this preprocessor | 290 // Once Chrome no longer supports OSX 10.6, everything within this preprocessor |
| 291 // block can be removed. | 291 // block can be removed. |
| 292 #if !defined(MAC_OS_X_VERSION_10_7) || \ | 292 #if !defined(MAC_OS_X_VERSION_10_7) || \ |
| 293 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_7 | 293 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_7 |
| 294 | 294 |
| 295 @interface NSEvent (LionSDK) | 295 @interface NSEvent (LionSDK) |
| 296 @property(readonly) NSInteger stage; | |
| 297 + (BOOL)isSwipeTrackingFromScrollEventsEnabled; | 296 + (BOOL)isSwipeTrackingFromScrollEventsEnabled; |
| 298 - (NSEventPhase)momentumPhase; | 297 - (NSEventPhase)momentumPhase; |
| 299 - (NSEventPhase)phase; | 298 - (NSEventPhase)phase; |
| 300 - (BOOL)hasPreciseScrollingDeltas; | 299 - (BOOL)hasPreciseScrollingDeltas; |
| 301 - (CGFloat)scrollingDeltaX; | 300 - (CGFloat)scrollingDeltaX; |
| 302 - (CGFloat)scrollingDeltaY; | 301 - (CGFloat)scrollingDeltaY; |
| 303 - (void)trackSwipeEventWithOptions:(NSEventSwipeTrackingOptions)options | 302 - (void)trackSwipeEventWithOptions:(NSEventSwipeTrackingOptions)options |
| 304 dampenAmountThresholdMin:(CGFloat)minDampenThreshold | 303 dampenAmountThresholdMin:(CGFloat)minDampenThreshold |
| 305 max:(CGFloat)maxDampenThreshold | 304 max:(CGFloat)maxDampenThreshold |
| 306 usingHandler:(void (^)(CGFloat gestureAmount, | 305 usingHandler:(void (^)(CGFloat gestureAmount, |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 - (void)setTitlebarAppearsTransparent:(BOOL)flag; | 534 - (void)setTitlebarAppearsTransparent:(BOOL)flag; |
| 536 @end | 535 @end |
| 537 | 536 |
| 538 #endif // MAC_OS_X_VERSION_10_10 | 537 #endif // MAC_OS_X_VERSION_10_10 |
| 539 | 538 |
| 540 // Once Chrome no longer supports OSX 10.10.2, everything within this | 539 // Once Chrome no longer supports OSX 10.10.2, everything within this |
| 541 // preprocessor block can be removed. | 540 // preprocessor block can be removed. |
| 542 #if !defined(MAC_OS_X_VERSION_10_10_3) || \ | 541 #if !defined(MAC_OS_X_VERSION_10_10_3) || \ |
| 543 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_10_3 | 542 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_10_3 |
| 544 | 543 |
| 544 @interface NSEvent (YosemiteSDK) |
| 545 @property(readonly) NSInteger stage; |
| 546 @end |
| 547 |
| 545 @interface NSView (YosemiteSDK) | 548 @interface NSView (YosemiteSDK) |
| 546 - (void)setPressureConfiguration:(NSPressureConfiguration*)aConfiguration; | 549 - (void)setPressureConfiguration:(NSPressureConfiguration*)aConfiguration; |
| 547 @end | 550 @end |
| 548 | 551 |
| 549 #endif // MAC_OS_X_VERSION_10_10 | 552 #endif // MAC_OS_X_VERSION_10_10 |
| 550 | 553 |
| 551 // ---------------------------------------------------------------------------- | 554 // ---------------------------------------------------------------------------- |
| 552 // Chrome uses -[CWNetwork securityMode] and -[CWNetwork rssi] on OSX 10.6. The | 555 // Chrome uses -[CWNetwork securityMode] and -[CWNetwork rssi] on OSX 10.6. The |
| 553 // former method relies on the enum CWSecurityMode which was removed in the OSX | 556 // former method relies on the enum CWSecurityMode which was removed in the OSX |
| 554 // 10.9 SDK. In order for Chrome to compile against an OSX 10.9+ SDK, Chrome | 557 // 10.9 SDK. In order for Chrome to compile against an OSX 10.9+ SDK, Chrome |
| (...skipping 25 matching lines...) Expand all Loading... |
| 580 // The symbol for kCWSSIDDidChangeNotification is available in the | 583 // The symbol for kCWSSIDDidChangeNotification is available in the |
| 581 // CoreWLAN.framework for OSX versions 10.6 through 10.10. The symbol is not | 584 // CoreWLAN.framework for OSX versions 10.6 through 10.10. The symbol is not |
| 582 // declared in the OSX 10.9+ SDK, so when compiling against an OSX 10.9+ SDK, | 585 // declared in the OSX 10.9+ SDK, so when compiling against an OSX 10.9+ SDK, |
| 583 // declare the symbol. | 586 // declare the symbol. |
| 584 // ---------------------------------------------------------------------------- | 587 // ---------------------------------------------------------------------------- |
| 585 #if defined(MAC_OS_X_VERSION_10_9) && \ | 588 #if defined(MAC_OS_X_VERSION_10_9) && \ |
| 586 MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_9 | 589 MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_9 |
| 587 BASE_EXPORT extern "C" NSString* const kCWSSIDDidChangeNotification; | 590 BASE_EXPORT extern "C" NSString* const kCWSSIDDidChangeNotification; |
| 588 #endif | 591 #endif |
| 589 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ | 592 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ |
| OLD | NEW |