| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2011 Apple Inc. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #ifndef WebCore_NSScrollerImpDetails_h | 26 #ifndef WebCore_NSScrollerImpDetails_h |
| 27 #define WebCore_NSScrollerImpDetails_h | 27 #define WebCore_NSScrollerImpDetails_h |
| 28 | 28 |
| 29 #import <AvailabilityMacros.h> | 29 #import <AvailabilityMacros.h> |
| 30 | 30 |
| 31 // This file forward-declares APIs for NSScroller that are only present on | |
| 32 // build SDKs newer than are currently supported. | |
| 33 | |
| 34 #if !defined(MAC_OS_X_VERSION_10_7) || MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_V
ERSION_10_7 | |
| 35 enum { | |
| 36 NSScrollerStyleLegacy = 0, | |
| 37 NSScrollerStyleOverlay = 1 | |
| 38 }; | |
| 39 typedef NSInteger NSScrollerStyle; | |
| 40 | |
| 41 enum { | |
| 42 NSScrollerKnobStyleDefault = 0, | |
| 43 NSScrollerKnobStyleDark = 1, | |
| 44 NSScrollerKnobStyleLight = 2 | |
| 45 }; | |
| 46 typedef NSInteger NSScrollerKnobStyle; | |
| 47 @interface NSScroller(NSObject) | |
| 48 + (NSScrollerStyle)preferredScrollerStyle; | |
| 49 @end | |
| 50 #endif // !10.7 | |
| 51 | |
| 52 @interface NSObject (ScrollbarPainter) | 31 @interface NSObject (ScrollbarPainter) |
| 53 + (id)scrollerImpWithStyle:(NSScrollerStyle)newScrollerStyle controlSize:(NSCont
rolSize)newControlSize horizontal:(BOOL)horizontal replacingScrollerImp:(id)prev
ious; | 32 + (id)scrollerImpWithStyle:(NSScrollerStyle)newScrollerStyle controlSize:(NSCont
rolSize)newControlSize horizontal:(BOOL)horizontal replacingScrollerImp:(id)prev
ious; |
| 54 - (CGFloat)knobAlpha; | 33 - (CGFloat)knobAlpha; |
| 55 - (void)setKnobAlpha:(CGFloat)knobAlpha; | 34 - (void)setKnobAlpha:(CGFloat)knobAlpha; |
| 56 - (CGFloat)trackAlpha; | 35 - (CGFloat)trackAlpha; |
| 57 - (void)setTrackAlpha:(CGFloat)trackAlpha; | 36 - (void)setTrackAlpha:(CGFloat)trackAlpha; |
| 58 - (void)setEnabled:(BOOL)enabled; | 37 - (void)setEnabled:(BOOL)enabled; |
| 59 - (void)setBoundsSize:(NSSize)boundsSize; | 38 - (void)setBoundsSize:(NSSize)boundsSize; |
| 60 - (void)setDoubleValue:(double)doubleValue; | 39 - (void)setDoubleValue:(double)doubleValue; |
| 61 - (void)setKnobProportion:(CGFloat)proportion; | 40 - (void)setKnobProportion:(CGFloat)proportion; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 - (void)startLiveResize; | 80 - (void)startLiveResize; |
| 102 - (void)contentAreaDidResize; | 81 - (void)contentAreaDidResize; |
| 103 - (void)endLiveResize; | 82 - (void)endLiveResize; |
| 104 - (void)windowOrderedIn; | 83 - (void)windowOrderedIn; |
| 105 - (void)windowOrderedOut; | 84 - (void)windowOrderedOut; |
| 106 - (void)beginScrollGesture; | 85 - (void)beginScrollGesture; |
| 107 - (void)endScrollGesture; | 86 - (void)endScrollGesture; |
| 108 @end | 87 @end |
| 109 | 88 |
| 110 #endif // WebCore_NSScrollerImpDetails_h | 89 #endif // WebCore_NSScrollerImpDetails_h |
| OLD | NEW |