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

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

Issue 2341873002: Handle touchpad flings with passive event listeners on compositor thread. (Closed)
Patch Set: Add dcheck for blimp 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 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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 } 269 }
270 270
271 void InputHandlerManager::NeedsMainFrame(int routing_id) { 271 void InputHandlerManager::NeedsMainFrame(int routing_id) {
272 DCHECK(task_runner_->BelongsToCurrentThread()); 272 DCHECK(task_runner_->BelongsToCurrentThread());
273 auto it = input_handlers_.find(routing_id); 273 auto it = input_handlers_.find(routing_id);
274 if (it == input_handlers_.end()) 274 if (it == input_handlers_.end())
275 return; 275 return;
276 it->second->NeedsMainFrame(); 276 it->second->NeedsMainFrame();
277 } 277 }
278 278
279 void InputHandlerManager::DispatchNonBlockingEventToMainThread(
280 int routing_id,
281 ui::ScopedWebInputEvent event,
282 const ui::LatencyInfo& latency_info) {
283 DCHECK(task_runner_->BelongsToCurrentThread());
284 client_->DispatchNonBlockingEventToMainThread(routing_id, std::move(event),
285 latency_info);
286 }
287
279 } // namespace content 288 } // 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