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

Unified Diff: content/public/browser/render_widget_host.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/public/browser/render_widget_host.h
diff --git a/content/public/browser/render_widget_host.h b/content/public/browser/render_widget_host.h
index f2f435042fce3725205731781410f8663a495ec1..830df64ccc6a94d3d4dc865602f81305798501e6 100644
--- a/content/public/browser/render_widget_host.h
+++ b/content/public/browser/render_widget_host.h
@@ -25,6 +25,10 @@ class WebMouseEvent;
class WebMouseWheelEvent;
}
+namespace ui {
+class LatencyInfo;
+}
+
namespace content {
struct CursorInfo;
@@ -166,6 +170,9 @@ class CONTENT_EXPORT RenderWidgetHost : public IPC::Sender {
const blink::WebMouseWheelEvent& wheel_event) = 0;
virtual void ForwardKeyboardEvent(
const NativeWebKeyboardEvent& key_event) = 0;
+ virtual void ForwardKeyboardEventWithLatencyInfo(
+ const NativeWebKeyboardEvent& key_event,
+ const ui::LatencyInfo& latency_info) = 0;
virtual void ForwardGestureEvent(
const blink::WebGestureEvent& gesture_event) = 0;
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_mac.mm ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698