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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 | 66 |
67 #if OS(MACOSX) | 67 #if OS(MACOSX) |
68 virtual void handleWheelEventPhase(PlatformWheelEventPhase) { } | 68 virtual void handleWheelEventPhase(PlatformWheelEventPhase) { } |
69 #endif | 69 #endif |
70 | 70 |
71 void setCurrentPosition(const FloatPoint&); | 71 void setCurrentPosition(const FloatPoint&); |
72 FloatPoint currentPosition() const; | 72 FloatPoint currentPosition() const; |
73 | 73 |
74 virtual void cancelAnimations() { } | 74 virtual void cancelAnimations() { } |
75 virtual void serviceScrollAnimations() { } | 75 virtual void serviceScrollAnimations() { } |
| 76 virtual bool hasRunningAnimation() const { return false; } |
76 | 77 |
77 virtual void contentAreaWillPaint() const { } | 78 virtual void contentAreaWillPaint() const { } |
78 virtual void mouseEnteredContentArea() const { } | 79 virtual void mouseEnteredContentArea() const { } |
79 virtual void mouseExitedContentArea() const { } | 80 virtual void mouseExitedContentArea() const { } |
80 virtual void mouseMovedInContentArea() const { } | 81 virtual void mouseMovedInContentArea() const { } |
81 virtual void mouseEnteredScrollbar(Scrollbar*) const { } | 82 virtual void mouseEnteredScrollbar(Scrollbar*) const { } |
82 virtual void mouseExitedScrollbar(Scrollbar*) const { } | 83 virtual void mouseExitedScrollbar(Scrollbar*) const { } |
83 virtual void willStartLiveResize() { } | 84 virtual void willStartLiveResize() { } |
84 virtual void contentsResized() const { } | 85 virtual void contentsResized() const { } |
85 virtual void willEndLiveResize() { } | 86 virtual void willEndLiveResize() { } |
(...skipping 22 matching lines...) Expand all Loading... |
108 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 |
109 float m_currentPosY; // subclass code complexity. | 110 float m_currentPosY; // subclass code complexity. |
110 | 111 |
111 private: | 112 private: |
112 float clampScrollPosition(ScrollbarOrientation, float); | 113 float clampScrollPosition(ScrollbarOrientation, float); |
113 }; | 114 }; |
114 | 115 |
115 } // namespace blink | 116 } // namespace blink |
116 | 117 |
117 #endif // ScrollAnimator_h | 118 #endif // ScrollAnimator_h |
OLD | NEW |