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

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

Issue 2576013002: Introducing WebCoalescedInputEvent and inclusion in content/common (Closed)
Patch Set: Created 4 years 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
Index: content/renderer/input/input_handler_manager.cc
diff --git a/content/renderer/input/input_handler_manager.cc b/content/renderer/input/input_handler_manager.cc
index 0596ad773c97d143e59f9053d497bf472d3cde2b..80d948e2ee6a45439226017996cb517533af8072 100644
--- a/content/renderer/input/input_handler_manager.cc
+++ b/content/renderer/input/input_handler_manager.cc
@@ -201,12 +201,12 @@ void InputHandlerManager::ProcessRafAlignedInputOnMainThread(int routing_id) {
void InputHandlerManager::HandleInputEvent(
int routing_id,
- ui::ScopedWebInputEvent input_event,
+ blink::ScopedWebCoalescedInputEvent input_event,
const ui::LatencyInfo& latency_info,
const InputEventAckStateCallback& callback) {
DCHECK(task_runner_->BelongsToCurrentThread());
TRACE_EVENT1("input,benchmark,rail", "InputHandlerManager::HandleInputEvent",
- "type", WebInputEvent::GetName(input_event->type));
+ "type", WebInputEvent::GetName(input_event->event().type));
auto it = input_handlers_.find(routing_id);
if (it == input_handlers_.end()) {
@@ -277,7 +277,7 @@ void InputHandlerManager::NeedsMainFrame(int routing_id) {
void InputHandlerManager::DispatchNonBlockingEventToMainThread(
int routing_id,
- ui::ScopedWebInputEvent event,
+ blink::WebCoalescedInputEvent::ScopedWebInputEvent event,
const ui::LatencyInfo& latency_info) {
DCHECK(task_runner_->BelongsToCurrentThread());
client_->DispatchNonBlockingEventToMainThread(routing_id, std::move(event),

Powered by Google App Engine
This is Rietveld 408576698