OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011, Google Inc. All rights reserved. | 2 * Copyright (c) 2011, 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 24 matching lines...) Expand all Loading... |
35 #include "platform/geometry/FloatPoint.h" | 35 #include "platform/geometry/FloatPoint.h" |
36 #include "platform/scroll/ScrollAnimator.h" | 36 #include "platform/scroll/ScrollAnimator.h" |
37 | 37 |
38 namespace blink { | 38 namespace blink { |
39 | 39 |
40 class ScrollAnimatorNoneTest; | 40 class ScrollAnimatorNoneTest; |
41 | 41 |
42 class PLATFORM_EXPORT ScrollAnimatorNone : public ScrollAnimator { | 42 class PLATFORM_EXPORT ScrollAnimatorNone : public ScrollAnimator { |
43 public: | 43 public: |
44 explicit ScrollAnimatorNone(ScrollableArea*); | 44 explicit ScrollAnimatorNone(ScrollableArea*); |
45 virtual ~ScrollAnimatorNone(); | 45 ~ScrollAnimatorNone() override; |
46 | 46 |
47 virtual ScrollResultOneDimensional userScroll(ScrollbarOrientation, ScrollGr
anularity, float step, float delta) override; | 47 ScrollResultOneDimensional userScroll(ScrollbarOrientation, ScrollGranularit
y, float step, float delta) override; |
48 virtual void scrollToOffsetWithoutAnimation(const FloatPoint&) override; | 48 void scrollToOffsetWithoutAnimation(const FloatPoint&) override; |
49 | 49 |
50 virtual void cancelAnimations() override; | 50 void cancelAnimations() override; |
51 virtual void serviceScrollAnimations() override; | 51 void serviceScrollAnimations() override; |
52 virtual bool hasRunningAnimation() const override; | 52 bool hasRunningAnimation() const override; |
53 | 53 |
54 virtual void updateAfterLayout() override; | 54 void updateAfterLayout() override; |
55 virtual void willEndLiveResize() override; | 55 void willEndLiveResize() override; |
56 virtual void didAddVerticalScrollbar(Scrollbar*) override; | 56 void didAddVerticalScrollbar(Scrollbar*) override; |
57 virtual void didAddHorizontalScrollbar(Scrollbar*) override; | 57 void didAddHorizontalScrollbar(Scrollbar*) override; |
58 | 58 |
59 enum Curve { | 59 enum Curve { |
60 Linear, | 60 Linear, |
61 Quadratic, | 61 Quadratic, |
62 Cubic, | 62 Cubic, |
63 Quartic, | 63 Quartic, |
64 Bounce | 64 Bounce |
65 }; | 65 }; |
66 | 66 |
67 struct PLATFORM_EXPORT Parameters { | 67 struct PLATFORM_EXPORT Parameters { |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 PerAxisData m_horizontalData; | 145 PerAxisData m_horizontalData; |
146 PerAxisData m_verticalData; | 146 PerAxisData m_verticalData; |
147 | 147 |
148 double m_startTime; | 148 double m_startTime; |
149 bool m_animationActive; | 149 bool m_animationActive; |
150 }; | 150 }; |
151 | 151 |
152 } // namespace blink | 152 } // namespace blink |
153 | 153 |
154 #endif // ScrollAnimatorNone_h | 154 #endif // ScrollAnimatorNone_h |
OLD | NEW |