| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2010, 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 namespace blink { | 42 namespace blink { |
| 43 | 43 |
| 44 class Scrollbar; | 44 class Scrollbar; |
| 45 | 45 |
| 46 class PLATFORM_EXPORT ScrollAnimatorMac : public ScrollAnimator { | 46 class PLATFORM_EXPORT ScrollAnimatorMac : public ScrollAnimator { |
| 47 | 47 |
| 48 public: | 48 public: |
| 49 ScrollAnimatorMac(ScrollableArea*); | 49 ScrollAnimatorMac(ScrollableArea*); |
| 50 virtual ~ScrollAnimatorMac(); | 50 virtual ~ScrollAnimatorMac(); |
| 51 | 51 |
| 52 void immediateScrollToPointForScrollAnimation(const FloatPoint& newPosition)
; |
| 52 bool haveScrolledSincePageLoad() const { return m_haveScrolledSincePageLoad;
} | 53 bool haveScrolledSincePageLoad() const { return m_haveScrolledSincePageLoad;
} |
| 53 | 54 |
| 54 void updateScrollerStyle(); | 55 void updateScrollerStyle(); |
| 55 | 56 |
| 56 bool scrollbarPaintTimerIsActive() const; | 57 bool scrollbarPaintTimerIsActive() const; |
| 57 void startScrollbarPaintTimer(); | 58 void startScrollbarPaintTimer(); |
| 58 void stopScrollbarPaintTimer(); | 59 void stopScrollbarPaintTimer(); |
| 59 | 60 |
| 60 void sendContentAreaScrolledSoon(const FloatSize& scrollDelta); | 61 void sendContentAreaScrolledSoon(const FloatSize& scrollDelta); |
| 61 | 62 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 void immediateScrollTo(const FloatPoint&); | 119 void immediateScrollTo(const FloatPoint&); |
| 119 | 120 |
| 120 bool m_haveScrolledSincePageLoad; | 121 bool m_haveScrolledSincePageLoad; |
| 121 bool m_needsScrollerStyleUpdate; | 122 bool m_needsScrollerStyleUpdate; |
| 122 IntRect m_visibleScrollerThumbRect; | 123 IntRect m_visibleScrollerThumbRect; |
| 123 }; | 124 }; |
| 124 | 125 |
| 125 } // namespace blink | 126 } // namespace blink |
| 126 | 127 |
| 127 #endif // ScrollAnimatorMac_h | 128 #endif // ScrollAnimatorMac_h |
| OLD | NEW |