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

Side by Side Diff: content/renderer/input/input_handler_manager.cc

Issue 2362863003: Handle touchpad flings with passive event listeners on compositor thread. (Closed)
Patch Set: Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/input/input_handler_manager.h" 5 #include "content/renderer/input/input_handler_manager.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 } 241 }
242 242
243 void InputHandlerManager::DidStopFlinging(int routing_id) { 243 void InputHandlerManager::DidStopFlinging(int routing_id) {
244 client_->DidStopFlinging(routing_id); 244 client_->DidStopFlinging(routing_id);
245 } 245 }
246 246
247 void InputHandlerManager::DidAnimateForInput() { 247 void InputHandlerManager::DidAnimateForInput() {
248 renderer_scheduler_->DidAnimateForInputOnCompositorThread(); 248 renderer_scheduler_->DidAnimateForInputOnCompositorThread();
249 } 249 }
250 250
251 void InputHandlerManager::DispatchNonBlockingEventToMainThread(
252 int routing_id,
253 ui::ScopedWebInputEvent event,
254 const ui::LatencyInfo& latency_info) {
255 DCHECK(task_runner_->BelongsToCurrentThread());
256 client_->DispatchNonBlockingEventToMainThread(routing_id, std::move(event),
257 latency_info);
258 }
259
251 } // namespace content 260 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/input/input_handler_manager.h ('k') | content/renderer/input/input_handler_manager_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698