| 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)
; | |
| 53 bool haveScrolledSincePageLoad() const { return m_haveScrolledSincePageLoad;
} | 52 bool haveScrolledSincePageLoad() const { return m_haveScrolledSincePageLoad;
} |
| 54 | 53 |
| 55 void updateScrollerStyle(); | 54 void updateScrollerStyle(); |
| 56 | 55 |
| 57 bool scrollbarPaintTimerIsActive() const; | 56 bool scrollbarPaintTimerIsActive() const; |
| 58 void startScrollbarPaintTimer(); | 57 void startScrollbarPaintTimer(); |
| 59 void stopScrollbarPaintTimer(); | 58 void stopScrollbarPaintTimer(); |
| 60 | 59 |
| 61 void sendContentAreaScrolledSoon(const FloatSize& scrollDelta); | 60 void sendContentAreaScrolledSoon(const FloatSize& scrollDelta); |
| 62 | 61 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 void immediateScrollTo(const FloatPoint&); | 118 void immediateScrollTo(const FloatPoint&); |
| 120 | 119 |
| 121 bool m_haveScrolledSincePageLoad; | 120 bool m_haveScrolledSincePageLoad; |
| 122 bool m_needsScrollerStyleUpdate; | 121 bool m_needsScrollerStyleUpdate; |
| 123 IntRect m_visibleScrollerThumbRect; | 122 IntRect m_visibleScrollerThumbRect; |
| 124 }; | 123 }; |
| 125 | 124 |
| 126 } // namespace blink | 125 } // namespace blink |
| 127 | 126 |
| 128 #endif // ScrollAnimatorMac_h | 127 #endif // ScrollAnimatorMac_h |
| OLD | NEW |