Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(280)

Side by Side Diff: third_party/WebKit/Source/platform/scroll/ScrollAnimatorBase.h

Issue 1778223002: Revert of Takeover MT initiated animations from the compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2661
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 // Returns how much of pixelDelta will be used by the underlying scrollable 74 // Returns how much of pixelDelta will be used by the underlying scrollable
75 // area. 75 // area.
76 virtual float computeDeltaToConsume(ScrollbarOrientation, float pixelDelta) const; 76 virtual float computeDeltaToConsume(ScrollbarOrientation, float pixelDelta) const;
77 77
78 78
79 // ScrollAnimatorCompositorCoordinator implementation. 79 // ScrollAnimatorCompositorCoordinator implementation.
80 ScrollableArea* scrollableArea() const override { return m_scrollableArea; } 80 ScrollableArea* scrollableArea() const override { return m_scrollableArea; }
81 void tickAnimation(double monotonicTime) override { }; 81 void tickAnimation(double monotonicTime) override { };
82 void cancelAnimation() override { } 82 void cancelAnimation() override { }
83 void takeoverCompositorAnimation() override { }
84 void updateCompositorAnimations() override { }; 83 void updateCompositorAnimations() override { };
85 void notifyCompositorAnimationFinished(int groupId) override { }; 84 void notifyCompositorAnimationFinished(int groupId) override { };
86 void notifyCompositorAnimationAborted(int groupId) override { }; 85 void notifyCompositorAnimationAborted(int groupId) override { };
87 void layerForCompositedScrollingDidChange(CompositorAnimationTimeline*) over ride { }; 86 void layerForCompositedScrollingDidChange(CompositorAnimationTimeline*) over ride { };
88 87
89 virtual void contentAreaWillPaint() const { } 88 virtual void contentAreaWillPaint() const { }
90 virtual void mouseEnteredContentArea() const { } 89 virtual void mouseEnteredContentArea() const { }
91 virtual void mouseExitedContentArea() const { } 90 virtual void mouseExitedContentArea() const { }
92 virtual void mouseMovedInContentArea() const { } 91 virtual void mouseMovedInContentArea() const { }
93 virtual void mouseEnteredScrollbar(Scrollbar&) const { } 92 virtual void mouseEnteredScrollbar(Scrollbar&) const { }
(...skipping 28 matching lines...) Expand all
122 float clampScrollPosition(ScrollbarOrientation, float) const; 121 float clampScrollPosition(ScrollbarOrientation, float) const;
123 122
124 RawPtrWillBeMember<ScrollableArea> m_scrollableArea; 123 RawPtrWillBeMember<ScrollableArea> m_scrollableArea;
125 float m_currentPosX; // We avoid using a FloatPoint in order to reduce 124 float m_currentPosX; // We avoid using a FloatPoint in order to reduce
126 float m_currentPosY; // subclass code complexity. 125 float m_currentPosY; // subclass code complexity.
127 }; 126 };
128 127
129 } // namespace blink 128 } // namespace blink
130 129
131 #endif // ScrollAnimatorBase_h 130 #endif // ScrollAnimatorBase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698