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

Unified Diff: cc/input/top_controls_manager.cc

Issue 139563004: Notification on finish handling of top control gesture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 11 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
« no previous file with comments | « cc/input/input_handler.h ('k') | cc/input/top_controls_manager_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/input/top_controls_manager.cc
diff --git a/cc/input/top_controls_manager.cc b/cc/input/top_controls_manager.cc
index 871d9e6f69c9a2098617564c0d257c8148a93d4a..ea21e8b8872e654ca9e2afe6b4c994f202160438 100644
--- a/cc/input/top_controls_manager.cc
+++ b/cc/input/top_controls_manager.cc
@@ -128,6 +128,8 @@ gfx::Vector2dF TopControlsManager::ScrollBy(
void TopControlsManager::ScrollEnd() {
DCHECK(!pinch_gesture_active_);
StartAnimationIfNecessary();
+ if (!top_controls_animation_)
+ client_->DidFinishTopControlsGesture();
}
void TopControlsManager::PinchBegin() {
@@ -173,8 +175,10 @@ gfx::Vector2dF TopControlsManager::Animate(base::TimeTicks monotonic_time) {
}
void TopControlsManager::ResetAnimations() {
- if (top_controls_animation_)
+ if (top_controls_animation_) {
top_controls_animation_.reset();
+ client_->DidFinishTopControlsGesture();
+ }
animation_direction_ = NO_ANIMATION;
}
« no previous file with comments | « cc/input/input_handler.h ('k') | cc/input/top_controls_manager_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698