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

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

Issue 2362863003: Handle touchpad flings with passive event listeners on compositor thread. (Closed)
Patch Set: 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
« no previous file with comments | « content/renderer/input/input_event_filter.h ('k') | content/renderer/input/input_handler_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 076eec831668228b1cadaa95a7c005f4f70700cc..1b9b25aacd6541d73df706304c6b91e1df32281d 100644
--- a/content/renderer/input/input_event_filter.cc
+++ b/content/renderer/input/input_event_filter.cc
@@ -109,6 +109,19 @@ void InputEventFilter::DidStopFlinging(int routing_id) {
SendMessage(base::WrapUnique(new 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) {
« no previous file with comments | « content/renderer/input/input_event_filter.h ('k') | content/renderer/input/input_handler_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698