| 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 client_->NotifyInputEventHandled(routing_id, type, ack_result); | 193 client_->NotifyInputEventHandled(routing_id, type, ack_result); |
| 194 } | 194 } |
| 195 | 195 |
| 196 void InputHandlerManager::ProcessRafAlignedInputOnMainThread(int routing_id) { | 196 void InputHandlerManager::ProcessRafAlignedInputOnMainThread(int routing_id) { |
| 197 client_->ProcessRafAlignedInput(routing_id); | 197 client_->ProcessRafAlignedInput(routing_id); |
| 198 } | 198 } |
| 199 | 199 |
| 200 void InputHandlerManager::HandleInputEvent( | 200 void InputHandlerManager::HandleInputEvent( |
| 201 int routing_id, | 201 int routing_id, |
| 202 ui::ScopedWebInputEvent input_event, | 202 ui::ScopedWebInputEvent input_event, |
| 203 const std::vector<const blink::WebInputEvent*>& coalescedEvents, |
| 203 const ui::LatencyInfo& latency_info, | 204 const ui::LatencyInfo& latency_info, |
| 204 const InputEventAckStateCallback& callback) { | 205 const InputEventAckStateCallback& callback) { |
| 205 DCHECK(task_runner_->BelongsToCurrentThread()); | 206 DCHECK(task_runner_->BelongsToCurrentThread()); |
| 206 TRACE_EVENT1("input,benchmark,rail", "InputHandlerManager::HandleInputEvent", | 207 TRACE_EVENT1("input,benchmark,rail", "InputHandlerManager::HandleInputEvent", |
| 207 "type", WebInputEvent::GetName(input_event->type)); | 208 "type", WebInputEvent::GetName(input_event->type)); |
| 208 | 209 |
| 209 auto it = input_handlers_.find(routing_id); | 210 auto it = input_handlers_.find(routing_id); |
| 210 if (it == input_handlers_.end()) { | 211 if (it == input_handlers_.end()) { |
| 211 TRACE_EVENT1("input,rail", "InputHandlerManager::HandleInputEvent", | 212 TRACE_EVENT1("input,rail", "InputHandlerManager::HandleInputEvent", |
| 212 "result", "NoInputHandlerFound"); | 213 "result", "NoInputHandlerFound"); |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 void InputHandlerManager::DispatchNonBlockingEventToMainThread( | 280 void InputHandlerManager::DispatchNonBlockingEventToMainThread( |
| 280 int routing_id, | 281 int routing_id, |
| 281 ui::ScopedWebInputEvent event, | 282 ui::ScopedWebInputEvent event, |
| 282 const ui::LatencyInfo& latency_info) { | 283 const ui::LatencyInfo& latency_info) { |
| 283 DCHECK(task_runner_->BelongsToCurrentThread()); | 284 DCHECK(task_runner_->BelongsToCurrentThread()); |
| 284 client_->DispatchNonBlockingEventToMainThread(routing_id, std::move(event), | 285 client_->DispatchNonBlockingEventToMainThread(routing_id, std::move(event), |
| 285 latency_info); | 286 latency_info); |
| 286 } | 287 } |
| 287 | 288 |
| 288 } // namespace content | 289 } // namespace content |
| OLD | NEW |