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

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

Issue 2394593002: revert "SourceEventType added to LatencyInfo." (Closed)
Patch Set: Created 4 years, 2 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 ad46286714c6ec8deaad77fc06d9c0e4f224e851..d60f35a83f02bd72b78ff72355a3f1a510d5e503 100644
--- a/content/browser/renderer_host/input/mouse_wheel_event_queue.cc
+++ b/content/browser/renderer_host/input/mouse_wheel_event_queue.cc
@@ -191,7 +191,7 @@ void MouseWheelEventQueue::ProcessMouseWheelAck(
}
if (needs_update) {
- ui::LatencyInfo latency = ui::LatencyInfo(ui::SourceEventType::WHEEL);
+ ui::LatencyInfo latency = ui::LatencyInfo();
latency.AddLatencyNumber(
ui::INPUT_EVENT_LATENCY_GENERATE_SCROLL_UPDATE_FROM_MOUSE_WHEEL, 0,
0);
@@ -279,8 +279,7 @@ void MouseWheelEventQueue::SendScrollEnd(WebGestureEvent update_event,
if (scroll_end_timer_.IsRunning())
scroll_end_timer_.Reset();
}
- client_->ForwardGestureEventWithLatencyInfo(
- scroll_end, ui::LatencyInfo(ui::SourceEventType::WHEEL));
+ client_->ForwardGestureEventWithLatencyInfo(scroll_end, ui::LatencyInfo());
}
void MouseWheelEventQueue::SendScrollBegin(
@@ -303,8 +302,7 @@ void MouseWheelEventQueue::SendScrollBegin(
needs_scroll_begin_ = false;
needs_scroll_end_ = true;
- client_->ForwardGestureEventWithLatencyInfo(
- scroll_begin, ui::LatencyInfo(ui::SourceEventType::WHEEL));
+ client_->ForwardGestureEventWithLatencyInfo(scroll_begin, ui::LatencyInfo());
}
} // namespace content
« no previous file with comments | « content/browser/frame_host/render_widget_host_view_guest.cc ('k') | content/browser/renderer_host/render_widget_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698