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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 // version of the OSX SDK, redeclare those same functions to suppress | 285 // version of the OSX SDK, redeclare those same functions to suppress |
286 // -Wpartial-availability warnings. | 286 // -Wpartial-availability warnings. |
287 // ---------------------------------------------------------------------------- | 287 // ---------------------------------------------------------------------------- |
288 | 288 |
289 // Once Chrome no longer supports OSX 10.6, everything within this preprocessor | 289 // Once Chrome no longer supports OSX 10.6, everything within this preprocessor |
290 // block can be removed. | 290 // block can be removed. |
291 #if !defined(MAC_OS_X_VERSION_10_7) || \ | 291 #if !defined(MAC_OS_X_VERSION_10_7) || \ |
292 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_7 | 292 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_7 |
293 | 293 |
294 @interface NSEvent (LionSDK) | 294 @interface NSEvent (LionSDK) |
| 295 @property(readonly) NSInteger stage; |
295 + (BOOL)isSwipeTrackingFromScrollEventsEnabled; | 296 + (BOOL)isSwipeTrackingFromScrollEventsEnabled; |
296 - (NSEventPhase)momentumPhase; | 297 - (NSEventPhase)momentumPhase; |
297 - (NSEventPhase)phase; | 298 - (NSEventPhase)phase; |
298 - (BOOL)hasPreciseScrollingDeltas; | 299 - (BOOL)hasPreciseScrollingDeltas; |
299 - (CGFloat)scrollingDeltaX; | 300 - (CGFloat)scrollingDeltaX; |
300 - (CGFloat)scrollingDeltaY; | 301 - (CGFloat)scrollingDeltaY; |
301 - (void)trackSwipeEventWithOptions:(NSEventSwipeTrackingOptions)options | 302 - (void)trackSwipeEventWithOptions:(NSEventSwipeTrackingOptions)options |
302 dampenAmountThresholdMin:(CGFloat)minDampenThreshold | 303 dampenAmountThresholdMin:(CGFloat)minDampenThreshold |
303 max:(CGFloat)maxDampenThreshold | 304 max:(CGFloat)maxDampenThreshold |
304 usingHandler:(void (^)(CGFloat gestureAmount, | 305 usingHandler:(void (^)(CGFloat gestureAmount, |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
562 // The symbol for kCWSSIDDidChangeNotification is available in the | 563 // The symbol for kCWSSIDDidChangeNotification is available in the |
563 // 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 |
564 // 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, |
565 // declare the symbol. | 566 // declare the symbol. |
566 // ---------------------------------------------------------------------------- | 567 // ---------------------------------------------------------------------------- |
567 #if defined(MAC_OS_X_VERSION_10_9) && \ | 568 #if defined(MAC_OS_X_VERSION_10_9) && \ |
568 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 |
569 BASE_EXPORT extern "C" NSString* const kCWSSIDDidChangeNotification; | 570 BASE_EXPORT extern "C" NSString* const kCWSSIDDidChangeNotification; |
570 #endif | 571 #endif |
571 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ | 572 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ |
OLD | NEW |