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

Unified Diff: content/browser/renderer_host/render_widget_host_view_event_handler.cc

Issue 2756893002: Add Keyboard Latency UMA Metrics. (Closed)
Patch Set: Restrict to RawKeyDown and Char events on Android & Mac Created 3 years, 7 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/render_widget_host_view_event_handler.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_event_handler.cc b/content/browser/renderer_host/render_widget_host_view_event_handler.cc
index 980a6780b411c34b8988b6bb93bf7d1c3dd833a0..bccea9a39c0d489eb7892b5e03a28c3cfe51648b 100644
--- a/content/browser/renderer_host/render_widget_host_view_event_handler.cc
+++ b/content/browser/renderer_host/render_widget_host_view_event_handler.cc
@@ -284,7 +284,8 @@ void RenderWidgetHostViewEventHandler::OnKeyEvent(ui::KeyEvent* event) {
SetKeyboardFocus();
// We don't have to communicate with an input method here.
NativeWebKeyboardEvent webkit_event(*event);
- delegate_->ForwardKeyboardEvent(webkit_event, &mark_event_as_handled);
+ delegate_->ForwardKeyboardEventWithLatencyInfo(
+ webkit_event, *event->latency(), &mark_event_as_handled);
}
if (mark_event_as_handled)
event->SetHandled();

Powered by Google App Engine
This is Rietveld 408576698