| 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 13 matching lines...) Expand all Loading... |
| 24 NSEventPhaseCancelled = 0x1 << 4, | 24 NSEventPhaseCancelled = 0x1 << 4, |
| 25 }; | 25 }; |
| 26 typedef NSUInteger NSEventPhase; | 26 typedef NSUInteger NSEventPhase; |
| 27 | 27 |
| 28 enum { | 28 enum { |
| 29 NSEventSwipeTrackingLockDirection = 0x1 << 0, | 29 NSEventSwipeTrackingLockDirection = 0x1 << 0, |
| 30 NSEventSwipeTrackingClampGestureAmount = 0x1 << 1, | 30 NSEventSwipeTrackingClampGestureAmount = 0x1 << 1, |
| 31 }; | 31 }; |
| 32 typedef NSUInteger NSEventSwipeTrackingOptions; | 32 typedef NSUInteger NSEventSwipeTrackingOptions; |
| 33 | 33 |
| 34 enum { |
| 35 NSWindowAnimationBehaviorDefault = 0, |
| 36 NSWindowAnimationBehaviorNone = 2, |
| 37 NSWindowAnimationBehaviorDocumentWindow = 3, |
| 38 NSWindowAnimationBehaviorUtilityWindow = 4, |
| 39 NSWindowAnimationBehaviorAlertPanel = 5 |
| 40 }; |
| 41 typedef NSInteger NSWindowAnimationBehavior; |
| 42 |
| 34 @interface NSEvent (LionSDK) | 43 @interface NSEvent (LionSDK) |
| 35 + (BOOL)isSwipeTrackingFromScrollEventsEnabled; | 44 + (BOOL)isSwipeTrackingFromScrollEventsEnabled; |
| 36 | 45 |
| 37 - (NSEventPhase)phase; | 46 - (NSEventPhase)phase; |
| 38 - (CGFloat)scrollingDeltaX; | 47 - (CGFloat)scrollingDeltaX; |
| 39 - (CGFloat)scrollingDeltaY; | 48 - (CGFloat)scrollingDeltaY; |
| 40 - (void)trackSwipeEventWithOptions:(NSEventSwipeTrackingOptions)options | 49 - (void)trackSwipeEventWithOptions:(NSEventSwipeTrackingOptions)options |
| 41 dampenAmountThresholdMin:(CGFloat)minDampenThreshold | 50 dampenAmountThresholdMin:(CGFloat)minDampenThreshold |
| 42 max:(CGFloat)maxDampenThreshold | 51 max:(CGFloat)maxDampenThreshold |
| 43 usingHandler:(void (^)(CGFloat gestureAmount, | 52 usingHandler:(void (^)(CGFloat gestureAmount, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 54 - (void)setContentsScale:(CGFloat)contentsScale; | 63 - (void)setContentsScale:(CGFloat)contentsScale; |
| 55 @end | 64 @end |
| 56 | 65 |
| 57 @interface NSScreen (LionSDK) | 66 @interface NSScreen (LionSDK) |
| 58 - (CGFloat)backingScaleFactor; | 67 - (CGFloat)backingScaleFactor; |
| 59 - (NSRect)convertRectToBacking:(NSRect)aRect; | 68 - (NSRect)convertRectToBacking:(NSRect)aRect; |
| 60 @end | 69 @end |
| 61 | 70 |
| 62 @interface NSWindow (LionSDK) | 71 @interface NSWindow (LionSDK) |
| 63 - (CGFloat)backingScaleFactor; | 72 - (CGFloat)backingScaleFactor; |
| 73 - (NSWindowAnimationBehavior)animationBehavior; |
| 74 - (void)setAnimationBehavior:(NSWindowAnimationBehavior)newAnimationBehavior; |
| 64 @end | 75 @end |
| 65 #endif // MAC_OS_X_VERSION_10_7 | 76 #endif // MAC_OS_X_VERSION_10_7 |
| 66 | 77 |
| 67 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ | 78 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ |
| OLD | NEW |