| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 | 44 |
| 45 class Scrollbar; | 45 class Scrollbar; |
| 46 | 46 |
| 47 class PLATFORM_EXPORT ScrollAnimatorMac : public ScrollAnimatorBase { | 47 class PLATFORM_EXPORT ScrollAnimatorMac : public ScrollAnimatorBase { |
| 48 WILL_BE_USING_PRE_FINALIZER(ScrollAnimatorMac, dispose); | 48 WILL_BE_USING_PRE_FINALIZER(ScrollAnimatorMac, dispose); |
| 49 public: | 49 public: |
| 50 ScrollAnimatorMac(ScrollableArea*); | 50 ScrollAnimatorMac(ScrollableArea*); |
| 51 ~ScrollAnimatorMac() override; | 51 ~ScrollAnimatorMac() override; |
| 52 | 52 |
| 53 void dispose() override; | 53 void dispose() override; |
| 54 void clearScrollAnimator() override; |
| 54 | 55 |
| 55 void immediateScrollToPointForScrollAnimation(const FloatPoint& newPosition)
; | 56 void immediateScrollToPointForScrollAnimation(const FloatPoint& newPosition)
; |
| 56 bool haveScrolledSincePageLoad() const { return m_haveScrolledSincePageLoad;
} | 57 bool haveScrolledSincePageLoad() const { return m_haveScrolledSincePageLoad;
} |
| 57 | 58 |
| 58 void updateScrollerStyle(); | 59 void updateScrollerStyle(); |
| 59 | 60 |
| 60 bool scrollbarPaintTimerIsActive() const; | 61 bool scrollbarPaintTimerIsActive() const; |
| 61 void startScrollbarPaintTimer(); | 62 void startScrollbarPaintTimer(); |
| 62 void stopScrollbarPaintTimer(); | 63 void stopScrollbarPaintTimer(); |
| 63 | 64 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 void immediateScrollTo(const FloatPoint&); | 129 void immediateScrollTo(const FloatPoint&); |
| 129 | 130 |
| 130 bool m_haveScrolledSincePageLoad; | 131 bool m_haveScrolledSincePageLoad; |
| 131 bool m_needsScrollerStyleUpdate; | 132 bool m_needsScrollerStyleUpdate; |
| 132 IntRect m_visibleScrollerThumbRect; | 133 IntRect m_visibleScrollerThumbRect; |
| 133 }; | 134 }; |
| 134 | 135 |
| 135 } // namespace blink | 136 } // namespace blink |
| 136 | 137 |
| 137 #endif // ScrollAnimatorMac_h | 138 #endif // ScrollAnimatorMac_h |
| OLD | NEW |