| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 void setCurrentPosition(const FloatPoint&); | 71 void setCurrentPosition(const FloatPoint&); |
| 72 FloatPoint currentPosition() const; | 72 FloatPoint currentPosition() const; |
| 73 virtual FloatPoint desiredTargetPosition() const { return currentPosition();
} | 73 virtual FloatPoint desiredTargetPosition() const { return currentPosition();
} |
| 74 | 74 |
| 75 // Returns how much of pixelDelta will be used by the underlying scrollable | 75 // Returns how much of pixelDelta will be used by the underlying scrollable |
| 76 // area. | 76 // area. |
| 77 virtual FloatSize computeDeltaToConsume(const FloatSize& delta) const; | 77 virtual FloatSize computeDeltaToConsume(const FloatSize& delta) const; |
| 78 | 78 |
| 79 | 79 |
| 80 // ScrollAnimatorCompositorCoordinator implementation. | 80 // ScrollAnimatorCompositorCoordinator implementation. |
| 81 ScrollableArea* scrollableArea() const override { return m_scrollableArea; } | 81 ScrollableArea* getScrollableArea() const override { return m_scrollableArea
; } |
| 82 void tickAnimation(double monotonicTime) override { }; | 82 void tickAnimation(double monotonicTime) override { }; |
| 83 void cancelAnimation() override { } | 83 void cancelAnimation() override { } |
| 84 void takeoverCompositorAnimation() override { } | 84 void takeoverCompositorAnimation() override { } |
| 85 void updateCompositorAnimations() override { }; | 85 void updateCompositorAnimations() override { }; |
| 86 void notifyCompositorAnimationFinished(int groupId) override { }; | 86 void notifyCompositorAnimationFinished(int groupId) override { }; |
| 87 void notifyCompositorAnimationAborted(int groupId) override { }; | 87 void notifyCompositorAnimationAborted(int groupId) override { }; |
| 88 void layerForCompositedScrollingDidChange(CompositorAnimationTimeline*) over
ride { }; | 88 void layerForCompositedScrollingDidChange(CompositorAnimationTimeline*) over
ride { }; |
| 89 | 89 |
| 90 virtual void contentAreaWillPaint() const { } | 90 virtual void contentAreaWillPaint() const { } |
| 91 virtual void mouseEnteredContentArea() const { } | 91 virtual void mouseEnteredContentArea() const { } |
| (...skipping 27 matching lines...) Expand all Loading... |
| 119 virtual void notifyPositionChanged(); | 119 virtual void notifyPositionChanged(); |
| 120 | 120 |
| 121 RawPtrWillBeMember<ScrollableArea> m_scrollableArea; | 121 RawPtrWillBeMember<ScrollableArea> m_scrollableArea; |
| 122 | 122 |
| 123 FloatPoint m_currentPos; | 123 FloatPoint m_currentPos; |
| 124 }; | 124 }; |
| 125 | 125 |
| 126 } // namespace blink | 126 } // namespace blink |
| 127 | 127 |
| 128 #endif // ScrollAnimatorBase_h | 128 #endif // ScrollAnimatorBase_h |
| OLD | NEW |