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

Unified Diff: content/browser/android/in_process/synchronous_input_event_filter.cc

Issue 131373004: Let the browser know the end of fling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile break 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
Index: content/browser/android/in_process/synchronous_input_event_filter.cc
diff --git a/content/browser/android/in_process/synchronous_input_event_filter.cc b/content/browser/android/in_process/synchronous_input_event_filter.cc
index b8ba0ea335274a37af721a590f275fed9031b1d0..b6404d6679d909e7dc3a8df5d08836cf12a4e1ab 100644
--- a/content/browser/android/in_process/synchronous_input_event_filter.cc
+++ b/content/browser/android/in_process/synchronous_input_event_filter.cc
@@ -76,4 +76,13 @@ void SynchronousInputEventFilter::DidOverscroll(
compositor->DidOverscroll(params);
}
+void SynchronousInputEventFilter::DidStopFlinging(int routing_id) {
+ // The SynchronusCompositorImpl can be NULL if the WebContents that it's
+ // bound to has already been deleted.
+ SynchronousCompositorImpl* compositor =
+ SynchronousCompositorImpl::FromRoutingID(routing_id);
+ if (compositor)
+ compositor->DidStopFlinging();
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698