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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 virtual bool scroll(ScrollbarOrientation, ScrollGranularity, float step, flo
at multiplier); | 58 virtual bool scroll(ScrollbarOrientation, ScrollGranularity, float step, flo
at multiplier); |
59 | 59 |
60 virtual void scrollToOffsetWithoutAnimation(const FloatPoint&); | 60 virtual void scrollToOffsetWithoutAnimation(const FloatPoint&); |
61 | 61 |
62 ScrollableArea* scrollableArea() const { return m_scrollableArea; } | 62 ScrollableArea* scrollableArea() const { return m_scrollableArea; } |
63 | 63 |
64 virtual void setIsActive() { } | 64 virtual void setIsActive() { } |
65 | 65 |
66 virtual bool handleWheelEvent(const PlatformWheelEvent&); | 66 virtual bool handleWheelEvent(const PlatformWheelEvent&); |
67 | 67 |
68 #if OS(DARWIN) | 68 #if OS(MACOSX) |
69 virtual void handleWheelEventPhase(PlatformWheelEventPhase) { } | 69 virtual void handleWheelEventPhase(PlatformWheelEventPhase) { } |
70 #endif | 70 #endif |
71 | 71 |
72 void setCurrentPosition(const FloatPoint&); | 72 void setCurrentPosition(const FloatPoint&); |
73 FloatPoint currentPosition() const; | 73 FloatPoint currentPosition() const; |
74 | 74 |
75 virtual void cancelAnimations() { } | 75 virtual void cancelAnimations() { } |
76 virtual void serviceScrollAnimations() { } | 76 virtual void serviceScrollAnimations() { } |
77 | 77 |
78 virtual void contentAreaWillPaint() const { } | 78 virtual void contentAreaWillPaint() const { } |
(...skipping 30 matching lines...) Expand all Loading... |
109 float m_currentPosX; // We avoid using a FloatPoint in order to reduce | 109 float m_currentPosX; // We avoid using a FloatPoint in order to reduce |
110 float m_currentPosY; // subclass code complexity. | 110 float m_currentPosY; // subclass code complexity. |
111 | 111 |
112 private: | 112 private: |
113 float clampScrollPosition(ScrollbarOrientation, float); | 113 float clampScrollPosition(ScrollbarOrientation, float); |
114 }; | 114 }; |
115 | 115 |
116 } // namespace WebCore | 116 } // namespace WebCore |
117 | 117 |
118 #endif // ScrollAnimator_h | 118 #endif // ScrollAnimator_h |
OLD | NEW |