| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |