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

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

Issue 2756893002: Add Keyboard Latency UMA Metrics. (Closed)
Patch Set: mfomitchev responses, rebase Created 3 years, 8 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 7eee0fb8435478bc8421d0656512c4de7722df77..0d93c6cd163e507867e362501942326d6177b9f8 100644
--- a/content/browser/renderer_host/render_widget_host_impl.h
+++ b/content/browser/renderer_host/render_widget_host_impl.h
@@ -155,7 +155,9 @@ class CONTENT_EXPORT RenderWidgetHostImpl
void SetActive(bool active) override;
void ForwardMouseEvent(const blink::WebMouseEvent& mouse_event) override;
void ForwardWheelEvent(const blink::WebMouseWheelEvent& wheel_event) override;
- void ForwardKeyboardEvent(const NativeWebKeyboardEvent& key_event) override;
+ void ForwardKeyboardEventWithLatencyInfo(
+ const NativeWebKeyboardEvent& key_event,
+ const ui::LatencyInfo& latency) override;
void ForwardGestureEvent(
const blink::WebGestureEvent& gesture_event) override;
RenderProcessHost* GetProcess() const override;
@@ -345,6 +347,7 @@ class CONTENT_EXPORT RenderWidgetHostImpl
// aura.
void ForwardKeyboardEventWithCommands(
const NativeWebKeyboardEvent& key_event,
+ const ui::LatencyInfo& latency,
const std::vector<EditCommand>* commands,
bool* update_event = nullptr);
@@ -352,16 +355,15 @@ class CONTENT_EXPORT RenderWidgetHostImpl
// when it has received a message.
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