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

Unified Diff: content/public/browser/render_widget_host.h

Issue 2756893002: Add Keyboard Latency UMA Metrics. (Closed)
Patch Set: Fix test issue Created 3 years, 9 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 2ae1a08e1b52b0d6116fd7d3c4a1d815c5c17ddd..063c0272e4a9b63792400020bcda875206e35bcc 100644
--- a/content/public/browser/render_widget_host.h
+++ b/content/public/browser/render_widget_host.h
@@ -17,6 +17,7 @@
#include "third_party/WebKit/public/platform/WebGestureEvent.h"
#include "third_party/WebKit/public/platform/WebInputEvent.h"
#include "third_party/WebKit/public/web/WebTextDirection.h"
+#include "ui/events/latency_info.h"
mfomitchev 2017/04/04 14:59:06 Declare instead of including in .h.
tdresser 2017/05/01 15:49:21 Done.
#include "ui/gfx/geometry/size.h"
#include "ui/surface/transport_dib.h"
@@ -163,8 +164,9 @@ class CONTENT_EXPORT RenderWidgetHost : public IPC::Sender {
const blink::WebMouseEvent& mouse_event) = 0;
virtual void ForwardWheelEvent(
const blink::WebMouseWheelEvent& wheel_event) = 0;
- virtual void ForwardKeyboardEvent(
- const NativeWebKeyboardEvent& key_event) = 0;
+ virtual void ForwardKeyboardEventWithLatencyInfo(
mfomitchev 2017/04/04 14:59:06 With other events we only have "WithLatencyInfo" v
tdresser 2017/05/01 15:49:21 This is only required for FindBarHost, which has a
mfomitchev 2017/05/04 20:36:05 Could FindBarHost do RenderWidgetHostImpl::From()
tdresser 2017/05/09 15:29:25 FindBarHost can't access RenderWidgetHostImpl due
mfomitchev 2017/05/09 17:35:23 I see. That sounds reasonable to me - at least we'
tdresser 2017/05/10 14:27:15 Done.
+ const NativeWebKeyboardEvent& key_event,
+ const ui::LatencyInfo& latency) = 0;
virtual void ForwardGestureEvent(
const blink::WebGestureEvent& gesture_event) = 0;

Powered by Google App Engine
This is Rietveld 408576698