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

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

Issue 2341873002: Handle touchpad flings with passive event listeners on compositor thread. (Closed)
Patch Set: Fix windows build Created 4 years, 3 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 7cdd2a0503acd00b1006967b5e2dc8ac99cebd61..56799b1128b224d40efe5c5edff70d23b09efa44 100644
--- a/content/renderer/input/input_event_filter.cc
+++ b/content/renderer/input/input_event_filter.cc
@@ -108,6 +108,19 @@ void InputEventFilter::DidStopFlinging(int routing_id) {
SendMessage(base::MakeUnique<InputHostMsg_DidStopFlinging>(routing_id));
}
+void InputEventFilter::DispatchNonBlockingEventToMainThread(
+ int routing_id,
+ ui::ScopedWebInputEvent event,
+ const ui::LatencyInfo& latency_info) {
+ DCHECK(target_task_runner_->BelongsToCurrentThread());
+ RouteQueueMap::iterator iter = route_queues_.find(routing_id);
+ if (iter != route_queues_.end()) {
+ iter->second->HandleEvent(std::move(event), latency_info,
+ DISPATCH_TYPE_NON_BLOCKING,
+ INPUT_EVENT_ACK_STATE_SET_NON_BLOCKING);
+ }
+}
+
void InputEventFilter::NotifyInputEventHandled(int routing_id,
blink::WebInputEvent::Type type,
InputEventAckState ack_result) {

Powered by Google App Engine
This is Rietveld 408576698