OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2010, Google Inc. All rights reserved. | 2 * Copyright (c) 2010, Google 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 13 matching lines...) Expand all Loading... |
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef ScrollAnimatorWin_h | 31 #ifndef ScrollAnimatorWin_h |
32 #define ScrollAnimatorWin_h | 32 #define ScrollAnimatorWin_h |
33 | 33 |
| 34 #if ENABLE(SMOOTH_SCROLLING) |
| 35 |
34 #include "ScrollAnimator.h" | 36 #include "ScrollAnimator.h" |
35 #include "Timer.h" | 37 #include "Timer.h" |
36 | 38 |
37 namespace WebCore { | 39 namespace WebCore { |
38 | 40 |
39 class ScrollAnimatorWin : public ScrollAnimator { | 41 class ScrollAnimatorWin : public ScrollAnimator { |
40 public: | 42 public: |
41 ScrollAnimatorWin(ScrollbarClient*); | 43 ScrollAnimatorWin(ScrollbarClient*); |
42 virtual ~ScrollAnimatorWin(); | 44 virtual ~ScrollAnimatorWin(); |
43 | 45 |
(...skipping 17 matching lines...) Expand all Loading... |
61 | 63 |
62 void animationTimerFired(Timer<ScrollAnimatorWin>*); | 64 void animationTimerFired(Timer<ScrollAnimatorWin>*); |
63 void stopAnimationTimerIfNeeded(PerAxisData*); | 65 void stopAnimationTimerIfNeeded(PerAxisData*); |
64 void animateScroll(PerAxisData*); | 66 void animateScroll(PerAxisData*); |
65 | 67 |
66 PerAxisData m_horizontalData; | 68 PerAxisData m_horizontalData; |
67 PerAxisData m_verticalData; | 69 PerAxisData m_verticalData; |
68 }; | 70 }; |
69 | 71 |
70 } | 72 } |
| 73 |
| 74 #endif // ENABLE(SMOOTH_SCROLLING) |
| 75 |
71 #endif | 76 #endif |
OLD | NEW |