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

Unified Diff: content/renderer/input/input_event_filter.cc

Issue 1923973002: Add UMA metric for tracking listeners for blocking touch while fling is happening (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactor and rename Created 4 years, 7 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 e62ee2cf941c784c96db901db93940ae26ccb648..4b3c82247b8b8cd8448c741e99f115b6c27b6106 100644
--- a/content/renderer/input/input_event_filter.cc
+++ b/content/renderer/input/input_event_filter.cc
@@ -50,7 +50,8 @@ InputEventFilter::InputEventFilter(
main_listener_(main_listener),
sender_(NULL),
target_task_runner_(target_task_runner),
- current_overscroll_params_(NULL) {
+ current_overscroll_params_(NULL),
+ is_flinging_(false) {
DCHECK(target_task_runner_.get());
}
@@ -184,7 +185,7 @@ void InputEventFilter::ForwardToHandler(const IPC::Message& message) {
RouteQueueMap::iterator iter = route_queues_.find(routing_id);
if (iter != route_queues_.end())
send_ack &= iter->second->HandleEvent(event, latency_info, dispatch_type,
- ack_state);
+ ack_state, is_flinging_);
}
if (!send_ack)
@@ -228,4 +229,8 @@ void InputEventFilter::SendEventToMainThread(
main_task_runner_->PostTask(FROM_HERE, base::Bind(main_listener_, new_msg));
}
+void InputEventFilter::SetIsFlinging(bool is_flinging) {
+ is_flinging_ = is_flinging;
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698