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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.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_impl.h
diff --git a/content/browser/renderer_host/render_widget_host_impl.h b/content/browser/renderer_host/render_widget_host_impl.h
index a9807e7962c474c5e8eb5b77c0657a8327bc9d94..0a5c0dbb3b980e40790a9b73d530ebbd02a71ce1 100644
--- a/content/browser/renderer_host/render_widget_host_impl.h
+++ b/content/browser/renderer_host/render_widget_host_impl.h
@@ -345,23 +345,26 @@ class CONTENT_EXPORT RenderWidgetHostImpl
// aura.
void ForwardKeyboardEventWithCommands(
const NativeWebKeyboardEvent& key_event,
+ const ui::LatencyInfo& latency,
const std::vector<EditCommand>* commands,
bool* update_event = nullptr);
// Forwards the given message to the renderer. These are called by the view
// when it has received a message.
+ void ForwardKeyboardEventWithLatencyInfo(
+ const NativeWebKeyboardEvent& key_event,
+ const ui::LatencyInfo& latency) override;
void ForwardGestureEventWithLatencyInfo(
const blink::WebGestureEvent& gesture_event,
- const ui::LatencyInfo& ui_latency) override;
+ const ui::LatencyInfo& latency) override;
virtual void ForwardTouchEventWithLatencyInfo(
const blink::WebTouchEvent& touch_event,
- const ui::LatencyInfo& ui_latency); // Virtual for testing.
- void ForwardMouseEventWithLatencyInfo(
- const blink::WebMouseEvent& mouse_event,
- const ui::LatencyInfo& ui_latency);
+ const ui::LatencyInfo& latency); // Virtual for testing.
+ void ForwardMouseEventWithLatencyInfo(const blink::WebMouseEvent& mouse_event,
+ const ui::LatencyInfo& latency);
virtual void ForwardWheelEventWithLatencyInfo(
const blink::WebMouseWheelEvent& wheel_event,
- const ui::LatencyInfo& ui_latency); // Virtual for testing.
+ const ui::LatencyInfo& latency); // Virtual for testing.
// Enables/disables touch emulation using mouse event. See TouchEmulator.
void SetTouchEventEmulationEnabled(

Powered by Google App Engine
This is Rietveld 408576698