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

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

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.h
diff --git a/content/browser/renderer_host/render_widget_host_view_event_handler.h b/content/browser/renderer_host/render_widget_host_view_event_handler.h
index 8f80ee7f4e049067980dec57a587c14da01b21df..acf533124c4258fe19afabedf28c855408931c63 100644
--- a/content/browser/renderer_host/render_widget_host_view_event_handler.h
+++ b/content/browser/renderer_host/render_widget_host_view_event_handler.h
@@ -62,8 +62,10 @@ class CONTENT_EXPORT RenderWidgetHostViewEventHandler
// to the renderer instead. |update_event| (if non-null) is set to indicate
// whether ui::KeyEvent::SetHandled() should be called on the underlying
// ui::KeyEvent.
- virtual void ForwardKeyboardEvent(const NativeWebKeyboardEvent& event,
- bool* update_event) = 0;
+ virtual void ForwardKeyboardEventWithLatencyInfo(
+ const NativeWebKeyboardEvent& event,
+ const ui::LatencyInfo& latency,
+ bool* update_event) = 0;
// Returns whether the widget needs to grab mouse capture to work properly.
virtual bool NeedsMouseCapture() = 0;
virtual void SetTooltipsEnabled(bool enable) = 0;

Powered by Google App Engine
This is Rietveld 408576698