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

Unified Diff: content/renderer/input/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: 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/renderer/input/input_event_filter.cc
diff --git a/content/renderer/input/input_event_filter.cc b/content/renderer/input/input_event_filter.cc
index a0399783988e64a7d0a00a3e59de5b6c607d0474..999bb8da7f9d2c20432274d26ca3b77a580a9d61 100644
--- a/content/renderer/input/input_event_filter.cc
+++ b/content/renderer/input/input_event_filter.cc
@@ -65,6 +65,15 @@ void InputEventFilter::DidOverscroll(int routing_id,
params.current_fling_velocity)));
}
+void InputEventFilter::DidStopFlinging(int routing_id) {
+ DCHECK(target_loop_->BelongsToCurrentThread());
+
+ io_loop_->PostTask(
+ FROM_HERE,
+ base::Bind(&InputEventFilter::SendMessageOnIOThread, this,
+ ViewHostMsg_DidStopFlinging(routing_id)));
+}
+
void InputEventFilter::OnFilterAdded(IPC::Channel* channel) {
io_loop_ = base::MessageLoopProxy::current();
sender_ = channel;

Powered by Google App Engine
This is Rietveld 408576698