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

Unified Diff: cc/input/top_controls_manager.cc

Issue 661643004: [android] Remove unused scroll delta in TopControls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: adding my name to authors lists Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: cc/input/top_controls_manager.cc
diff --git a/cc/input/top_controls_manager.cc b/cc/input/top_controls_manager.cc
index 79353f2b2d15e3f2e1f248560c0492e4d8426e21..5cf9c86837f0b98b2f721e8426393e491cdbc58e 100644
--- a/cc/input/top_controls_manager.cc
+++ b/cc/input/top_controls_manager.cc
@@ -137,6 +137,10 @@ void TopControlsManager::ScrollEnd() {
StartAnimationIfNecessary();
}
+void TopControlsManager::RemoveUnUsedScrollDelta(float unused_delta) {
+ current_scroll_delta_ -= unused_delta;
+}
+
void TopControlsManager::PinchBegin() {
DCHECK(!pinch_gesture_active_);
pinch_gesture_active_ = true;

Powered by Google App Engine
This is Rietveld 408576698