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

Unified Diff: content/browser/renderer_host/input/mouse_wheel_event_queue.cc

Issue 2317253005: SourceEventType added to LatencyInfo (Closed)
Patch Set: Added a fake return to the end of EventTypeToLatencySourceEventType, for compilers that don't know … 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/input/mouse_wheel_event_queue.cc
diff --git a/content/browser/renderer_host/input/mouse_wheel_event_queue.cc b/content/browser/renderer_host/input/mouse_wheel_event_queue.cc
index 561ca19f4528377e4c7c4cc9590e73f52a0cdad2..7579c2afb434748bf33817c802fbe61fbd5b2191 100644
--- a/content/browser/renderer_host/input/mouse_wheel_event_queue.cc
+++ b/content/browser/renderer_host/input/mouse_wheel_event_queue.cc
@@ -180,7 +180,7 @@ void MouseWheelEventQueue::ProcessMouseWheelAck(
}
if (needs_update) {
- ui::LatencyInfo latency = ui::LatencyInfo();
+ ui::LatencyInfo latency = ui::LatencyInfo(ui::SourceEventType::WHEEL);
latency.AddLatencyNumber(
ui::INPUT_EVENT_LATENCY_GENERATE_SCROLL_UPDATE_FROM_MOUSE_WHEEL, 0,
0);
@@ -268,7 +268,8 @@ void MouseWheelEventQueue::SendScrollEnd(WebGestureEvent update_event,
if (scroll_end_timer_.IsRunning())
scroll_end_timer_.Reset();
}
- client_->ForwardGestureEventWithLatencyInfo(scroll_end, ui::LatencyInfo());
+ client_->ForwardGestureEventWithLatencyInfo(
+ scroll_end, ui::LatencyInfo(ui::SourceEventType::WHEEL));
}
void MouseWheelEventQueue::SendScrollBegin(
@@ -291,7 +292,8 @@ void MouseWheelEventQueue::SendScrollBegin(
needs_scroll_begin_ = false;
needs_scroll_end_ = true;
- client_->ForwardGestureEventWithLatencyInfo(scroll_begin, ui::LatencyInfo());
+ client_->ForwardGestureEventWithLatencyInfo(
+ scroll_begin, ui::LatencyInfo(ui::SourceEventType::WHEEL));
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698