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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 virtual ScrollOffset DesiredTargetOffset() const { return CurrentOffset(); } | 67 virtual ScrollOffset DesiredTargetOffset() const { return CurrentOffset(); } |
68 | 68 |
69 // Returns how much of pixelDelta will be used by the underlying scrollable | 69 // Returns how much of pixelDelta will be used by the underlying scrollable |
70 // area. | 70 // area. |
71 virtual ScrollOffset ComputeDeltaToConsume(const ScrollOffset& delta) const; | 71 virtual ScrollOffset ComputeDeltaToConsume(const ScrollOffset& delta) const; |
72 | 72 |
73 // ScrollAnimatorCompositorCoordinator implementation. | 73 // ScrollAnimatorCompositorCoordinator implementation. |
74 ScrollableArea* GetScrollableArea() const override { | 74 ScrollableArea* GetScrollableArea() const override { |
75 return scrollable_area_; | 75 return scrollable_area_; |
76 } | 76 } |
77 void TickAnimation(double monotonic_time) override{}; | 77 void TickAnimation(double monotonic_time) override {} |
78 void CancelAnimation() override {} | 78 void CancelAnimation() override {} |
79 void TakeOverCompositorAnimation() override {} | 79 void TakeOverCompositorAnimation() override {} |
80 void UpdateCompositorAnimations() override{}; | 80 void UpdateCompositorAnimations() override {} |
81 void NotifyCompositorAnimationFinished(int group_id) override{}; | 81 void NotifyCompositorAnimationFinished(int group_id) override {} |
82 void NotifyCompositorAnimationAborted(int group_id) override{}; | 82 void NotifyCompositorAnimationAborted(int group_id) override {} |
83 void LayerForCompositedScrollingDidChange( | 83 void LayerForCompositedScrollingDidChange( |
84 CompositorAnimationTimeline*) override{}; | 84 CompositorAnimationTimeline*) override {} |
85 | 85 |
86 virtual void ContentAreaWillPaint() const {} | 86 virtual void ContentAreaWillPaint() const {} |
87 virtual void MouseEnteredContentArea() const {} | 87 virtual void MouseEnteredContentArea() const {} |
88 virtual void MouseExitedContentArea() const {} | 88 virtual void MouseExitedContentArea() const {} |
89 virtual void MouseMovedInContentArea() const {} | 89 virtual void MouseMovedInContentArea() const {} |
90 virtual void MouseEnteredScrollbar(Scrollbar&) const {} | 90 virtual void MouseEnteredScrollbar(Scrollbar&) const {} |
91 virtual void MouseExitedScrollbar(Scrollbar&) const {} | 91 virtual void MouseExitedScrollbar(Scrollbar&) const {} |
92 virtual void ContentsResized() const {} | 92 virtual void ContentsResized() const {} |
93 virtual void ContentAreaDidShow() const {} | 93 virtual void ContentAreaDidShow() const {} |
94 virtual void ContentAreaDidHide() const {} | 94 virtual void ContentAreaDidHide() const {} |
(...skipping 17 matching lines...) Expand all Loading... |
112 virtual void NotifyOffsetChanged(); | 112 virtual void NotifyOffsetChanged(); |
113 | 113 |
114 Member<ScrollableArea> scrollable_area_; | 114 Member<ScrollableArea> scrollable_area_; |
115 | 115 |
116 ScrollOffset current_offset_; | 116 ScrollOffset current_offset_; |
117 }; | 117 }; |
118 | 118 |
119 } // namespace blink | 119 } // namespace blink |
120 | 120 |
121 #endif // ScrollAnimatorBase_h | 121 #endif // ScrollAnimatorBase_h |
OLD | NEW |