OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006 Apple Computer, 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 Scrollbar(ScrollableArea*, ScrollbarOrientation, ScrollbarControlSize, Scrol
lbarTheme* = 0); | 157 Scrollbar(ScrollableArea*, ScrollbarOrientation, ScrollbarControlSize, Scrol
lbarTheme* = 0); |
158 | 158 |
159 void updateThumb(); | 159 void updateThumb(); |
160 virtual void updateThumbPosition(); | 160 virtual void updateThumbPosition(); |
161 virtual void updateThumbProportion(); | 161 virtual void updateThumbProportion(); |
162 | 162 |
163 void autoscrollTimerFired(Timer<Scrollbar>*); | 163 void autoscrollTimerFired(Timer<Scrollbar>*); |
164 void startTimerIfNeeded(double delay); | 164 void startTimerIfNeeded(double delay); |
165 void stopTimerIfNeeded(); | 165 void stopTimerIfNeeded(); |
166 void autoscrollPressedPart(double delay); | 166 void autoscrollPressedPart(double delay); |
167 ScrollDirection pressedPartScrollDirection(); | 167 ScrollDirectionPhysical pressedPartScrollDirectionPhysical(); |
168 ScrollGranularity pressedPartScrollGranularity(); | 168 ScrollGranularity pressedPartScrollGranularity(); |
169 | 169 |
170 ScrollableArea* m_scrollableArea; | 170 ScrollableArea* m_scrollableArea; |
171 ScrollbarOrientation m_orientation; | 171 ScrollbarOrientation m_orientation; |
172 ScrollbarControlSize m_controlSize; | 172 ScrollbarControlSize m_controlSize; |
173 ScrollbarTheme* m_theme; | 173 ScrollbarTheme* m_theme; |
174 | 174 |
175 #if ENABLE(OILPAN) | 175 #if ENABLE(OILPAN) |
176 // To simplify Oilpan finalization, keep a copy of the ScrollableArea's | 176 // To simplify Oilpan finalization, keep a copy of the ScrollableArea's |
177 // scroll animator. Scrollbar is responsible for notifying the animator | 177 // scroll animator. Scrollbar is responsible for notifying the animator |
(...skipping 28 matching lines...) Expand all Loading... |
206 virtual bool isScrollbar() const override { return true; } | 206 virtual bool isScrollbar() const override { return true; } |
207 | 207 |
208 float scrollableAreaCurrentPos() const; | 208 float scrollableAreaCurrentPos() const; |
209 }; | 209 }; |
210 | 210 |
211 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr
ollbar()); | 211 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr
ollbar()); |
212 | 212 |
213 } // namespace blink | 213 } // namespace blink |
214 | 214 |
215 #endif // Scrollbar_h | 215 #endif // Scrollbar_h |
OLD | NEW |