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 27 matching lines...) Expand all Loading... |
38 | 38 |
39 enum { | 39 enum { |
40 NSScrollerKnobStyleDefault = 0, | 40 NSScrollerKnobStyleDefault = 0, |
41 NSScrollerKnobStyleDark = 1, | 41 NSScrollerKnobStyleDark = 1, |
42 NSScrollerKnobStyleLight = 2 | 42 NSScrollerKnobStyleLight = 2 |
43 }; | 43 }; |
44 typedef NSInteger NSScrollerKnobStyle; | 44 typedef NSInteger NSScrollerKnobStyle; |
45 #endif | 45 #endif |
46 | 46 |
47 #if __MAC_OS_X_VERSION_MAX_ALLOWED == 1060 | 47 #if __MAC_OS_X_VERSION_MAX_ALLOWED == 1060 |
48 @interface NSScroller(NSObject) | 48 PLATFORM_EXPORT @interface NSScroller(NSObject) |
49 + (NSScrollerStyle)preferredScrollerStyle; | 49 + (NSScrollerStyle)preferredScrollerStyle; |
50 @end | 50 @end |
51 #endif | 51 #endif |
52 | 52 |
53 @interface NSObject (ScrollbarPainter) | 53 PLATFORM_EXPORT @interface NSObject (ScrollbarPainter) |
54 + (id)scrollerImpWithStyle:(NSScrollerStyle)newScrollerStyle controlSize:(NSCont
rolSize)newControlSize horizontal:(BOOL)horizontal replacingScrollerImp:(id)prev
ious; | 54 + (id)scrollerImpWithStyle:(NSScrollerStyle)newScrollerStyle controlSize:(NSCont
rolSize)newControlSize horizontal:(BOOL)horizontal replacingScrollerImp:(id)prev
ious; |
55 - (CGFloat)knobAlpha; | 55 - (CGFloat)knobAlpha; |
56 - (void)setKnobAlpha:(CGFloat)knobAlpha; | 56 - (void)setKnobAlpha:(CGFloat)knobAlpha; |
57 - (CGFloat)trackAlpha; | 57 - (CGFloat)trackAlpha; |
58 - (void)setTrackAlpha:(CGFloat)trackAlpha; | 58 - (void)setTrackAlpha:(CGFloat)trackAlpha; |
59 - (void)setEnabled:(BOOL)enabled; | 59 - (void)setEnabled:(BOOL)enabled; |
60 - (void)setBoundsSize:(NSSize)boundsSize; | 60 - (void)setBoundsSize:(NSSize)boundsSize; |
61 - (void)setDoubleValue:(double)doubleValue; | 61 - (void)setDoubleValue:(double)doubleValue; |
62 - (void)setKnobProportion:(CGFloat)proportion; | 62 - (void)setKnobProportion:(CGFloat)proportion; |
63 - (void)setKnobStyle:(NSScrollerKnobStyle)knobStyle; | 63 - (void)setKnobStyle:(NSScrollerKnobStyle)knobStyle; |
(...skipping 12 matching lines...) Expand all Loading... |
76 - (CGFloat)knobEndInset; | 76 - (CGFloat)knobEndInset; |
77 - (CGFloat)uiStateTransitionProgress; | 77 - (CGFloat)uiStateTransitionProgress; |
78 - (CGFloat)expansionTransitionProgress; | 78 - (CGFloat)expansionTransitionProgress; |
79 - (NSRect)rectForPart:(NSScrollerPart)partCode; | 79 - (NSRect)rectForPart:(NSScrollerPart)partCode; |
80 - (void)drawKnobSlotInRect:(NSRect)slotRect highlight:(BOOL)flag alpha:(CGFloat)
alpha; | 80 - (void)drawKnobSlotInRect:(NSRect)slotRect highlight:(BOOL)flag alpha:(CGFloat)
alpha; |
81 - (void)drawKnob; | 81 - (void)drawKnob; |
82 - (void)mouseEnteredScroller; | 82 - (void)mouseEnteredScroller; |
83 - (void)mouseExitedScroller; | 83 - (void)mouseExitedScroller; |
84 @end | 84 @end |
85 | 85 |
86 @interface NSObject (ScrollbarPainterController) | 86 PLATFORM_EXPORT @interface NSObject (ScrollbarPainterController) |
87 - (void)setDelegate:(id)delegate; | 87 - (void)setDelegate:(id)delegate; |
88 - (void)hideOverlayScrollers; | 88 - (void)hideOverlayScrollers; |
89 - (void)flashScrollers; | 89 - (void)flashScrollers; |
90 - (id)horizontalScrollerImp; | 90 - (id)horizontalScrollerImp; |
91 - (void)setHorizontalScrollerImp:(id)horizontal; | 91 - (void)setHorizontalScrollerImp:(id)horizontal; |
92 - (id)verticalScrollerImp; | 92 - (id)verticalScrollerImp; |
93 - (void)setVerticalScrollerImp:(id)vertical; | 93 - (void)setVerticalScrollerImp:(id)vertical; |
94 - (NSScrollerStyle)scrollerStyle; | 94 - (NSScrollerStyle)scrollerStyle; |
95 - (void)setScrollerStyle:(NSScrollerStyle)scrollerStyle; | 95 - (void)setScrollerStyle:(NSScrollerStyle)scrollerStyle; |
96 - (void)contentAreaScrolled; | 96 - (void)contentAreaScrolled; |
97 - (void)contentAreaScrolledInDirection:(NSPoint)direction; | 97 - (void)contentAreaScrolledInDirection:(NSPoint)direction; |
98 - (void)contentAreaWillDraw; | 98 - (void)contentAreaWillDraw; |
99 - (void)mouseEnteredContentArea; | 99 - (void)mouseEnteredContentArea; |
100 - (void)mouseExitedContentArea; | 100 - (void)mouseExitedContentArea; |
101 - (void)mouseMovedInContentArea; | 101 - (void)mouseMovedInContentArea; |
102 - (void)startLiveResize; | 102 - (void)startLiveResize; |
103 - (void)contentAreaDidResize; | 103 - (void)contentAreaDidResize; |
104 - (void)endLiveResize; | 104 - (void)endLiveResize; |
105 - (void)windowOrderedIn; | 105 - (void)windowOrderedIn; |
106 - (void)windowOrderedOut; | 106 - (void)windowOrderedOut; |
107 - (void)beginScrollGesture; | 107 - (void)beginScrollGesture; |
108 - (void)endScrollGesture; | 108 - (void)endScrollGesture; |
109 @end | 109 @end |
110 | 110 |
111 namespace WebCore { | 111 namespace WebCore { |
112 | 112 |
113 bool isScrollbarOverlayAPIAvailable(); | 113 PLATFORM_EXPORT bool isScrollbarOverlayAPIAvailable(); |
114 | 114 |
115 NSScrollerStyle recommendedScrollerStyle(); | 115 PLATFORM_EXPORT NSScrollerStyle recommendedScrollerStyle(); |
116 | 116 |
117 } | 117 } |
118 | 118 |
119 #endif | 119 #endif |
OLD | NEW |